Skip to content

scripting

need to script something ? do it here

  1. On the page it reports various powershell scripts under the download section at the bottom of the guide, I'am unable to locate them could you please inform where they're are Thanks

  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. Afternoon all, I am trying to setup a simple script that will determine if Drive E: exists and if so is it a CD Rom drive. Then based on that info run install command line. The if else logic seems to work but I'm having a hard time getting the install cmd to run. Any help would be greatly appreciated, I'm also open to other ways of doing this. Exit code btw is 1622. Cheers, Mike $instdir = Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.DeviceID -eq "E:"} If (!($instdir)){ $process = start-process -filepath "setup.exe" -argumentlist '/s /v"/l*voicewarmup \"%temp%\besclientinstall.log\" INSTALLDIR=\"C:\Program Files (x86)\BigFix Enterprise\…

    • 3 replies
    • 7.4k views
  4. Hi all, Having an issue re creating our build process in the new SCCM environment i've been building lately. During the deployment of an OS we have two visual basic scripts that run after the OS has been booted into for the first time that add the PC to the correct AD groups and starts the 802.1x service (i know there is probably other ways of doing this but i'd rather replicate than redesign). This works flawlwessly on our current live SCCM but in the new one, which is working with Windows 10 rather than 7, i cannot get it to run during the TS, i just receieve an incorrect function error, whereas if i run the script manually on the Windows 10 machine it works as exp…

  5. Started by Polarman,

    I have a script installing "LabView" from "National Instruments". However the installer (setup.exe with parameters) is just starting a lot of other installers, and when I use SCCM and detection method the software goes to "installed" just after starting install, although it continues for another hour (!). That is because im checking if a file is present. How could I instead check for "when a process finish or exits then the software is installed"? Knut

  6. Hey Guys and Gals, i am wondering if anybody has a hostname change and reboot WITHOUT rebooting in between? thanks all Jammy

    • 2 replies
    • 9.5k views
  7. Trying to find out how to add Active Directory Groups (ex: Client Support, Eng Team) to local computer groups (ex: Administratiors). I need to add multiple AD Groups to differnt local computer groups (Administrators, Remote Desktop). Can anyone help?

  8. Started by xnalax,

    Hi, is there a ADSSecurity.dll for a 64 bit OS? I need to copy, change permissions from folders via vbscript? On 32 it will work, but my os is 64 bit... thanks for any information..

    • 2 replies
    • 6.9k views
  9. Started by GolfKingUK,

    I have a script that I pieced together which accomplishes the following: Creates Local Admin, Sets a Password, encodes the password, then writes the encoded value to the registry. This script works perfectly in Windows XP. For Windows 7, it creates the Admin User, but does not write the password to the registry, nor does it check the never expire and user can't change password boxes. (These are less important but it must write the encoded password value to the registry). Once that value is in the registry, then SCCM inventories the value and the helpdesk can un-encode the password and give the login information to a user, who needs emergency admin rights. M…

  10. Started by repacker,

    Hi, I'm searching for a script to delete all files and folders from drive D: but at the same time I'd like to to exclude a few folders and files! A was looking at Robocopy. Here is my testscript: *************** mkdir C:\DELETE robocopy "D:\" "D:\DELETE" /E /MOV /NP /XD "Dir 1" "Dir 20 00" "Dir3" /XF "File 1.dll" "File 2 0 .txt" /R:10 /W:30 rmdir "c:\DELETE" /s /Q ************* It creates a directory > copies everything (except the excluded folders and files) to that directory and than it deletes the directory....but It gives back this message: ERROR: Invalid Parameter #4 : "00 Dir3 /XF File" What is the right command line string? …

    • 2 replies
    • 7.5k views
  11. Started by JakesSA,

    Hi All, I've notice my SCCM clients not responing to my main server. So I started looking and notice the following in our login script. I'm not a expert in scripting but please explain to me what will the following do to my SCCM clients ================== Sub SMSSite() Dim smsClient, inParam, result If Site <> "DurbanPlessey" OR Site <> "Killarney" Then "This will only exclude these sites" Set smsClient = GetObject("winmgmts://127.0.0.1/root/ccm:SMS_Client") Set inParam = smsClient.Methods_.Item("SetAssignedSite").inParameters.SpawnInstance_() inParam.sSiteCode = "C00" Set result = smsClient.ExecMethod_("SetAssignedSite", inParam) End If E…

    • 2 replies
    • 9.1k views
  12. 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

  13. Started by Thomas M,

    I pull this info out in order to have a complete register of all our computer systems in case of theft or insurance issues. DNSHostName=XXX10001 Manufacturer=LENOVO Version=ThinkCentre A57 Model=970273G SerialNumber=LMXXXXX UserName=Domain\Username FullName=Lastname, Firstname Middlename Caption=Microsoft Windows 7 Enterprise Version=6.1.7600 OSArchitecture=64-bit InstallDate=20100728133244.000000+120 IPAddress={"10.0.0.2","fe80::19da:933c:93c4:51a1"} MACAddress=00:11:22:33:44:AA Here's the script @echo off WMIC PATH Win32_ComputerSystem Get DNSHostName /Value | FIND "=" WMIC PATH Win32_BIOS Get Manufacturer /Value | FIND "=" WMIC PATH Win32…

    • 2 replies
    • 16k views
  14. Hi all, To do some reporting around app deployment for our classrooms, I'm WMI-querying class SMS_AppDeploymentAssetDetails. Unfortunately, it returns multiple records per device. Does anyone know how get back only the most recent record of a device? Thank you in advance! Regars, Sven

  15. Hey guys, Been having a little issue with a customer i'm working for these days. They are running windows 8.1 clients, and need some shortcuts pinned to the metro start screen, these include shortcuts to folders and shortcuts to network files/folders We have got a great way to do web addresses in SCCM 2012 R2, but unfortunatly that does not cover i.e. exe files on the network, or shared folders and so on. I have found several scripts for this, both VBS scripts and PS scripts that i have used in windows 8, but for some reason they do not work in windows 8.1 ( VBS: http://gallery.technet.microsoft.com/scriptcenter/How-to-pin-items-to-Start-ee960ad8 PS: Several …

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.