Skip to content

scripting

need to script something ? do it here

  1. Started by jamitupya,

    Hey guys, trying to dynamically create a shortcut in the start menu but failing misserably... point is to start this link during our OSD for Windows 7....for all intensive purposes, it should work, but wont display the link in the all users.... ideas? ' Initialization Program = "SetStart.vbs" Set shell = CreateObject("Wscript.Shell") ' Create the shortcut and point it to the specified script (assume C:\Build) ' path = shell.SpecialFolders("ProgramData") & "C:\Profiles\Profiles\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" & "\Startup.lnk" path = "C:\Users\All Users\Microsoft\Windows\Start Menu\Programs\Startup" & "\…

    • 3 replies
    • 7.8k views
  2. I'm trying to run the Microsoft Fit it Program that resets IE8 settings on a multitude of computers. I have tried -- msiexec /i "Microsoftfitit50195.msi" /qn but I get 2 prompts at the end of the process. I cant seem to find any other parameters to answer those prompts. Am I missing a parameter or is there any other way via GPO to force the IE settings reset? Thank for your help.

    • 1 reply
    • 5.6k views
  3. Started by conorofarrell,

    Hi I am looking for a good way to run a script in powershell, to detect my site from an XML. We are currently using MDT to do this, but we cannot be completely automated due to the fact that we often build our machines on a central site and ship them out. This this end, I am putting together an XML file to pull the default settings as below. I'm happy with the 2nd (locale)section and how I can use it, I'm not sure how to approach the first section, pulling the gateway out and assigning the 3 letter site code. We have a lot of subnets of each site, so if I can list all the subnets, then assign the site code, that's how I would do it. My XML file: <?xml version="…

  4. 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
  5. 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

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

  7. Hello everbody, Does someone knows how to disable 802.1x on Windows 7? I found a VBScript in the link below but it doesn't work on Windows 7, because the EAPOL registry was discontinued on Windows vista http://www.tech-archive.net/Archive/Scripting/microsoft.public.scripting.vbscript/2005-04/msg00232.html Does anyone knows how to do it, using WMI, registry or batch? Any help would be really appreciated! Thanks in advance!

  8. Started by speedy,

    Dear All we need patch or script to uninstall autodesk products

  9. 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
  10. I have a script that shuts the PcaSvc (Program Compatibility Assistant Service) before installing another program. However, I need a script to detect that it's Stopped so I can use it for SCCM AppModel detection. I have this, but I'm getting erros......yes I'm a Powershell newbie...... $PcaSvc = Get-WmiObject win32_service | where Name -eq "PcaSvc" if ($PcaSvc.State -eq "Stopped") { $true } else { $false } Please assist...thanks!

    • 1 reply
    • 3.8k views
  11. I have a short script to modify some HKCU reg entries for the Default user. I want to apply this to the reference image so it gets applied to new users. I know this can be done with GPO. I am using MDT and have it pause after the script runs so I can test it. It is says completed successfully but it doesnt do anything. Even when I run it from a cmd prompt manually during the pause. This does not work when running it manually on a machine either. This is the script @ECHO OFF REM ***************************************************** REM Script configures the Default User Profile REM ***************************************************** echo. echo. Load …

  12. Started by ctelfer,

    Hello. I am looking for a way in my OSD deployments to prompt for partition sizes of disks other than the system drive, and to use the input to create and format those drives. Any one done this already? Thanks!

    • 0 replies
    • 3.8k views
  13. Can someone show me a sample of script that has an "if exist" statement that checks if the network printer is connected to the current PC. I have this on part of my script that removes a network printer. But, I would like to add an "if exist" statement that checks and then removes if it does exist. ******* Dim DelPrint, UNCpath UNCpath = "\\server\network_printer1" Set DelPrint = WScript.CreateObject("WScript.Network") DelPrint.RemovePrinterConnection UNCpath, true, true ******* Many thanks,

    • 0 replies
    • 4.2k views
  14. Started by Quinten,

    Hello, I had a question on PowerShell Version: 5.1.19041.1023 If you look at the attached screenshot you'll see what I'm curious about. I run this command in PowerShell ISE: Get-CimInstance -ClassName win32_computersystem -Property * | Get-Member -MemberType Method You see what it displays in the display window. But when I run WEBMTEST and I choose OPEN CLASS and then Win32_ComputerSystem you'll notice the METHODS don't match what you see in the ISE command. My question is why? Thank you.

    • 0 replies
    • 2.3k views
  15. Hi! I'm having some issues with a .vbscript made for renaming computer during a task sequence. The issue is that it works for renaming virtual machines, but also a physical HP, the way it's supposed to (name of choosing + last 6 digits of serialnumber). However it fails on a customers physical Lenovo machine. The Lenovo machine sets the first part of name correctly, but completely ignores the fact that it's supposed to cut the serialnumber to the last 6 digits, meaning sometimes the machinename goes above 15 characters. The vbscript is run right after formating the disk, as seen on this pic: The script is: -------------------------------------------------------…

    • 1 reply
    • 5.9k views

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.