Skip to content

scripting

need to script something ? do it here

  1. Started by jamitupya,

    This script will load a command line variable for the username or can auto to administrator and password from an ini file. ' Initialization Set wshNetwork = CreateObject("WScript.Network") Set shell = CreateObject("WScript.Shell") Set fs = CreateObject("Scripting.FileSystemObject") ' Get parameters Program = "AutoLog.vbs" If WScript.Arguments.Count > 0 then username = WScript.Arguments.Item(0) Else username = TranslateLocalUser("Administrator") End if If WScript.Arguments.Count > 1 then password = WScript.Arguments.Item(1) Else password = ReadIni("C:\Build\Settings.ini", "LocalAdmin", "localAdminPassword") End if computerName = wshNetwork.Com…

    • 0 replies
    • 10.4k views
  2. 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…

  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. 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
  5. 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
  6. Hi All, Can any "Scripting-Rockstar" here help me out ??? I need a VBSscript which can perform "Disk Cleanup" action without any user interaction on user machines. I will later wrap it using WISE Re-packaging tool and then deploy it thorugh SCCM 2007. Its really urgent...!!!!! Please help out.

  7. I'm trying to write a simple script that would first check at logon if a user is on our domain and if so, launch a website. This is so that they don't get "Page cannot be displayed" if they are not connected. So far I'm playing with: ipconfig > c:\IP.txt FINDSTR "10.5" c:\IP.txt > C:\Subnet.txt Now how would I use the IF command to check if 10.5 is present in the "Subnet.txt" and if so, launch the site? This is probably very simple but my knowledge of scripts is limited to Google. Thanks!

      • Like
    • 4 replies
    • 9.1k views
  8. Started by jamitupya,

    We have a system in place that displays a Blank Screen and logo in place whilst loading your network drives and profile. The reason for this is that we simply want to ensure the PC has had enough time to load all the services and applications on your computer prior to giving you your desktop. This system provides that we can have a single logon script set through GPO at the root level of our domain and then INDIVIDUAL mappings per site and country. This guide assumes that you have first setup Windows Server 2008 and configured it for Active Directory. In a production environment please consult Technet for best practise, see below links: Design Active …

    • 2 replies
    • 8.8k views
  9. Started by anyweb,

    you can edit a batch file (shutdown.bat) and paste the following into it shutdown.exe -s -f -t 5 -c "shutting down the computer now" save the file and you can 'call' it either using Windows Task Manager (start/control panael, scheduled tasks, add scheduled task) the -s in the code above tells shutdown.exe to shut the system down, if you want to reboot the machine change it to -r the -f switch forces running applications to close without warning and the -c displays a comment box to warn the user of the coming shutdown, in addition it adds this info the the eventviewer. the 5 after -t is the number of seconds before the machine is shutdown. cheer…

    • 0 replies
    • 8.6k views
  10. Started by petebuk,

    Hello all, I am new to scripting an need to implement a script to run at log in to add a local administrator account cewadmin and set a password. Any ideas?

  11. Started by rahulrs,

    How can I prevent users to login twice from different machines? The Users should only be allowed to login once on the machine. Once he or she login into different machine, the previous machine will logout automatically. Is it have anyway to set this? (active directory) i knw the way to block with computer id, i want to block with user account? any one knw , plz help???

  12. 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 …

  13. Started by Kingskawn,

    I need a vbs script to check which language my OS is and install the adequate application. I had for example the update of RDP 6.1 for SP2 that I needed to deploy but I had some 1603 errors and I couldn't figure out what was causing this. Seems that it was just the language of the OS that was not matching. So I have a WindowsXP-KB952155-x86-ENU and WindowsXP-KB952155-x86-NLD

  14. Started by LeeF,

    This may very well overlap a few topics but I have a need for a PS script that I can assign to a Configuration Item and a Configuration Baseline. I have the PS scripts but need advice how to run the script as it fails due to the fact by default CM Clients run at the level of All Signed. I thought I could just add at line 1 Set-ExecutionPolicy ByPass within the remediation script as follows Set-ExecutionPolicy ByPass $MinDays = 14 $UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr $Cache = $UIResourceMgr.GetCacheInfo() $Cache.GetCacheElements()| where-object {[datetime]$_.LastReferenceTime -lt (get-date).adddays(-$mindays)}| foreach {$Cache…

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

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.