scripting
need to script something ? do it here
124 topics in this forum
-
Hey Everyone Hope someone can help with this one. New to powershell but getting by pretty good until now. I need to take the content of about 3000 text files and the content of each text file written to a row in excel. Hope someone might be able to help with this as it is doing my head in.......I'm googled out........ Any help or advise would be much appreciated. Even if someone has done this is VBS would be good. Thanks Brendon.
-
- 1 reply
- 3.4k views
-
-
Hi, I am trying to create a script that automatically populates a database with existing computers. It queries the local machine for UUID and computername then creates a new record for the machine in the database. This works perfectly at the moment. The problem is, once the record is created, the linked view "ComputerSettings" isn't updated. I am looking for a way to programatically update the ComputerSettings view using vbscript. Does anyone have any ideas? The database i am referring to is MDT
-
- 0 replies
- 3.3k views
- 1 follower
-
-
Hello, i will change the Accent Color in Windows 10 with sccm. This not work reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "AccentColor" /t REG_BINARY /d ff767676 /f reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "ColorizationColor" /t REG_BINARY /d c4767676 /f reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "ColorizationAfterglow" /t REG_BINARY /d c4767676 /f i need only the change from blue (standard) to grey
-
- 0 replies
- 3.3k views
-
-
I found this script for naming wimfiles during ztibackup but I cant get it to run. Get lots of errors, even after removing all the "'s. Can someone help me? —script begin— set env = CreateObject(“Microsoft.SMS.TSEnvironment”) Set ProgressUI = CreateObject(“Microsoft.SMS.TsProgressUI”) ProgressUI.CloseProgressDialog BackupFile = InputBox(“Name of wim file”) env(“BackupFile”) = BackupFile —script end—
-
- 0 replies
- 3.2k views
-
-
Hi..Need Help... got a requirement where a HTA Wizard needs to be prompted while OSD via SCCM. Selection 1 : Select Dept ( ex : HR/Accounts/Marketing) Selection 2: IF HR selected, an another dropdown to be displayed with Agency names assosiated ( ex : AM/PM/TA/AM) *In the same way every Dept has multiple Agencies. Depending on the above selection, the computer name needs to be set for ex : <HR><AM><SerialNumber> Let me know if there are any such sample scripts as such or any pointers or someone would have already worked on such scripts before
-
- 2 replies
- 3.2k views
- 1 follower
-
-
We currently have a Powershell script that runs and grabs the security logs from our Domain controllers. We would like to either filter out results from the created .csv file or adjust the script to give us all the data for a certain event ID. The below is a copy of the current Powershell script we use to grab the logs. cls $computer = gc env:computername $mypath = "c:\" $dt=(get-date).AddDays(-1).tostring("MM-dd-yyyy") $obj = New-Object System.Globalization.CultureInfo -ArgumentList "en-US" $before = [DateTime]::Parse((get-date).tostring("MM-dd-yyyy"), $obj) $after = [DateTime]::Parse((get-date).AddDays(-1).tostring("MM-dd-yyyy"), $obj) get-eventlog -logname…
-
- 0 replies
- 3k views
-
-
I need help I'm new on SCCM. I need to rename a Hyper V virtual machine. i'm using this settings on customsetting.ini TS fails. task sequence error 0x80220005 when i use laptop or desktop works perfect but fails when deploying Hyper V VM [Settings] Priority=ByLaptop, ByDesktop, ByVM, Default Properties=MyCustomProperty [ByLaptop] subsection=Laptop-%IsLaptop% [Laptop-True] OSDComputerName=LT-%SerialNumber% MachineObjectOU=OU=Laptops,OU=USA,OU=Sites,DC=mydomain,DC=com [ByDesktop] subsection=Desktop-%IsDesktop% [Desktop-True] OSDComputerName=DT-%SerialNumber% MachineObjectOU=OU=Desktops,OU=USA,OU=Sites,DC=mydomain,DC=com [By…
-
- 1 reply
- 3k views
-
-
Environment: SCCM 2012 sp1 Problem: Installs of Flash are failing with error 1603 Workaround: User runs http://support.microsoft.com/mats/program_install_and_uninstall/ Desired solution: Running a fixit script via a package on a collection of machines with these failed installs. Has anyone done this before, or knows how? I've been poking at it, but I've not found a clear "Here's how to script fixit" Thanks
-
- 0 replies
- 3k views
-
-
Hi guys, I've got reboot task sequences setup for all my patch groups to ensure they are ready to be patched and are compliant. We are a retail facility and had a patching freeze over Thanksgiving. I was asked to shut off ALL reboot task sequences during the blackout, not just on the ones that would have patched groups during that freeze. Most of my patch groups throughout the month fall on an early Sunday morning when things are quiet. However, I enabled the pre/post RTS (reboot task sequence) for my dev group at 4:40 PM on Friday for a Sunday morning patching and they ended up grabbing the policy and rebooting around 5:10ish. Needless to say I shut off the o…
-
- 0 replies
- 3k views
-
-
Hi I have been tasked with setting up a compliance rule to check for the existence of a certificate in the trusted root of the corporate Windows 7 Desktops and remediate if possible. I have been having difficulty trying to figure out how to accomplish this. I did find a link suggesting to use a powershell script but I seem to be getting very mixed results. I have included the script below If anyone has any idea's on how I can accomplish this or can point me in the right direction it would be appreciated. This is the script I was trying with out reliable success: $Compliance = 'Non-Compliant' $Check = get-childitem -path cert:\localmachine -recurse | where-obj…
-
- 1 reply
- 2.9k views
- 1 follower
-
-
I’m currently working on a user Onboarding script as the company can not afford a system to automate etc and want to check if you can help me on something which I cannot figure out? On a nutshell we have 4 different sites and each Location has its own OU for user accounts. We have departmental shares like IT, Accounts etc n want to add newly created to their respective department group and lastly distribution group based on location. Can you please help me a script for this if possible? I am able to create users but not able to add users based on departments also to the distribution group based on location Searched online could not find much Appreciate the help. Thank you
-
- 0 replies
- 2.9k views
- 1 follower
-
-
-
Hi, Due to some lost machines on our network, i came up with an ideia...possibly a stupid (or not the best) one My idea was to create a script to run everyday through scheduled task on the client computer. The basic function of the script would be to ping a domain controller to check the presence of the computer on our offices... If the computer cannot ping a domain controller for 4 months (let's say a smart guy took a laptop to "work" at home), it would run an action, (lock computer, delete something, put it in loop, something) to force the user to bring back the computer to out IT team. Any ideas where i should start? Any different approaches? Any suggestion wi…
-
- 0 replies
- 2.6k views
-
-
Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.
-
- 0 replies
- 2.6k views
- 1 follower
-
-
Greeting All, I am trying to come up with away to duplicate my desktop in windows 8.1. I have found many articles about customizing the Start Screen when imaging, but I can not find anything about customizing the desktop when applying a windows 8.1 image. Can anyone help me with a script to customize the desktop on a windows 8.1 image, or even point me towards a few articles that discuss cloning the layout of a windows 8.1 desktop not Start Screen. Thanks all
-
- 0 replies
- 2.6k views
-
