Skip to content

scripting

need to script something ? do it here

  1. Started by Leo,

    Hi all, I am trying to figure out how can i add homepage setting for IE in System Restore process in ZTI. I have done couple of scripts but it added to the Local Machine but not to the current user. However, i also thought that packaging a vbs script (which sets the homepage) and a bat file(which calls the homepage.vbs) in a winrar sfx would help. What i did here is, i made it as an application and call it during the System Restore in ZTI in SMS. Winrar extracts those 2 files in a temp folder in C: Root. But does not change the Homepage. I read it somewhere that using reg.exe can be done. But i didn't find any resource how to do it. Can anyone point me to…

  2. Hi, I need a script which will enable me to achieve the following goals if someone could assist. All workstations are either WIn7 or XP (just a tiny amount of XP) Printer installs on each device are currently of an unknown ilk (each one has been installed manually!) The script needs to:- Remove ALL local and network printers Add the following printers \\printserver\mono \\printserver\colour We are only currently moving to print servers (i know, i know.. !) and i would like to clear up each workstation from a printing perspective and start again. Also, would you deploy this via policy? Or would you use SCCM2007. We have both. Any help w…

  3. Started by Polarman,

    Hi, I need help changing this script to start install from a share instead of files being downloaded and cached before installing... For use with SCCM 2012 $SPSSArgs = '"IBM SPSS Statistics 24.msi" AUTHCODE="mycodehere" INSTALLPYTHON="0" ENABLE_JAB="1"' $MSIexecArgs = "/qb ALLUSERS=2 /m MSIUQUPQ /norestart /i" Start-Process msiexec.exe -ArgumentList "$SPSSArgs $MSIexecArgs" -Wait Do I need to rebuild the whole script? Knut

  4. Started by anyweb,

    let's say you need to pull values from the operating system WMI class, in XP you can do as follows:- open a command prompt and try this wmic.exe path win32_BaseBoard get /format:htable > win32_BaseBoard_test.html the above will pull all values for win32_BaseBoard and place the output in a html formatted table which you can view in Internet Explorer (will not display correctly in Firefox). attached is an example output of the above code. cheers anyweb win32_BaseBoard_test.html

  5. How do you it through TS? thanks for any help

    • 2 replies
    • 4.3k views
  6. 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…

  7. Hi, I have some cad programs that require .net 3.5 on many clients windows 10. I have tried many things running it from the cmd prompt in a task srquence and I am not successful. I have written a batch file that works when I run it on a local machine. The only thing is UAC prompts you to hit ok which when running on a local machine is fine. However when I run it as a batch file in a task sequence you can see that it appears to run with no errors. I guess it is waiting for UAC to say ok. Is there a way in the batch file to automate that to say ok in order if it to proceed. Or if there is another way to do this please share. I have a…

  8. Need help building one PowerShell script to run on Windows XP and Windows 7 If possible. I need the script to perform the following functions. Remove all temp files for all users Empty Recycle Bin for all users Empty Temp Direrctory Empty Temp Internet Files for all users Delete User Profile's 90+ days inactive Run Check Disk Clean up tool at the end. I have attached a script that was given to me but needs to modified for XP I think and add other items listed above. Disk_Cleaup_Tool.txt

  9. I have a software that is putting files in users %temp%-folder. As we have AppLocker preventing installations from ANY standard temp-folders, I need to change this How can I script change of users %temp% folder, to another location, temporary?

  10. Started by king13p,

    Hello, I'm working on a Powershell script to install Autodesk products. I'm having issues with a step and hopefully someone can help. I've tried this many different ways and keep running into errors. Using double quotes (Start-Process "msiexec.exe" -ArgumentList ""/i $dirFiles\ABDS2017\Img\x64\RVT\RVT.msi INSTALLDIR="C:\Program Files\Autodesk\" ADSK_SETUP_EXE=1 /qb!"" -NoNewWindow -Wait -PassThru).ExitCode Error Cannot validate argument on parameter 'ArgumentList' Argument is null or empty. Using a variable to define InstallDir $RevitInstallDir = "C:\Program Files\Autodesk\" (Start-Process "msiexec.exe" -ArgumentList "/i $d…

  11. $a = "C:\Program Files (x86)\Google\Chrome\Application\80.0.3987.149\Installer\setup.exe --uninstall --system-level --verbose-logging" $a -replace '([^\\]*)$' Suppose my condition is like this How do I extract the desired folder name $b = $a -replace '([^\\]*)$' $b = google or $b =chrome or $b = Application

    • 1 reply
    • 3.6k views
  12. I am working for a company who is looking to create a new Windows 10 image. I have a powershell script that prompts for a Computer name and this all works fine by passing the OSDComputerName variable to the TS. I'm trying to introduce is another powershell script that will ask the user to select one of 2 domains. This is done by selecting one of 2 radio buttons in a Powershell Form called by a function. Whichever one is selected will create a custom TS variable and the variable will be passed on later to the Task Sequence and the correct Network Settings will be set dependent on which domain is selected. The problem is the Domain Select script doesn't seem to run as p…

  13. 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

  14. Started by anyweb,

    to do this you need to be using Windows Server 2003, Windows XP or Windows Vista (Windows 2000 doesn't support it) open a command prompt and paste this wmic.exe path win32_NetworkAdapterConfiguration get /format:htable > win32_NetworkAdapterConfiguration.html This will create a new file called win32_NetworkAdapterConfiguration.html which you can open in a Web browser (IE please, Firefox won't render this correctly) here's a sample of the file win32_NetworkAdapterConfiguration.html Under the IPAddress column, you'll see the IP address of the current Network adapter, you may see many listed (PPOE and more) here's the same query in text …

    • 0 replies
    • 26.1k views
  15. I need to install Symantec Endpoint Protection, what would the command line be like in powershell where I can call a .ps1 script in a completely hidden and silent way? I did a previous TS that copies the setup64.exe from SEP to "C:\TEMP\" I don't have much knowledge on powerhsell as would the script that would install it silently? the argument for installing it via Batch File is / s. However, the CMD window appears during Windows logon, and Powershell can do all of this without any windows appearing, and I wanted powershell to wait for the installation to finish (I researched this and think the parameter is -WaitProcess but I don't know where how to put it) and…

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.