Skip to content

scripting

need to script something ? do it here

  1. Started by Pavan Kumar,

    Hi Everyone, I am working on script that will do pre-check to verify if machine can be upgraded to windows 10. I checked couple of websites and videos that says setup will do pre-check with appraiser.sdb file for compatibility and decided whether machine can be upgraded. i am trying to access sbd file but couldnt do it. Can some please help me. Thanks, Pavan

    • 4 replies
    • 4.4k views
  2. 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

  3. scirpt.txt Hi Difficult issue if there is anyone out there that can solve? We are looking for a solution to find why user ID roaming profiles are always corrupting for different users. Simply refreshing user ID roaming profiles via attached script is a temporary fix and doesnt answer why the user ID's corrupt in the first place Background points We have a large user base 6000+ and seperated user personal SAN storage space F drive from their roaming profile within a Vista client environment. Basically getting a range of issues whereby user IDs become corrupt with a number of bespoke applications. There are hundreds of requests to refresh a user ID via t…

  4. Hi, I thought I would advertise my book here as I need all the shout-outs I can get! The book is entitled: ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell I think it's pretty good, but then again, I'm probably biased. You can get it here: https://leanpub.com/configmgr-DeployUsingPS Sorry about this advert - I hate adverts too. Sometimes, you just...gotta.

    • 1 reply
    • 4.1k views
  5. Started by Donte,

    Hi Guys, Am not too good with batch script and PowerShell and am trying to amend an existing batch script to do a certain install but I keep getting "system error 55 has occurred" on the network drive path of the line, and also " error code 1605" for the install command part of the script I am trying to find a way to re write the scrip using PowerShell. the main action is to perform an install of an application which upgrades or updates the current application to new version on the local server. I want to re use the same script for other devices too. I hope the above makes some sense.

    • 5 replies
    • 5.8k views
  6. Hello! I'm going to need some help here! I have a task from client to do some cleanup for their W2008 fileserver. I'm asked to move all files and folders older than 3 years (modified by). But This need to be done so that folder structure itself remains same even for the files and folders that are being moved. Idea is that when some random user asks to get some 5 year old picture from folder X we can find it easily. This task needs to be done so that ALL files older than 3 years are moved. Even if they are located in folder where is lots of newer files AND folder structure will be same where files will be moved. Is there anybody who can help me? Thank you! …

  7. Started by Gadric,

    Hello: I am trying to reaquaint myself with VBScripting and I need to write a script that will CALL several applications one after the other and install them as I run the script. Can anyone put me on the right track here? Thank you

    • 1 reply
    • 3.6k views
  8. The script below will tell me the uptime on PC's. I want to add the language that says if Uptime is greater than X amount of days then it will send a reboot in 15 Mins. Any help would be appreciated. # This PS script provides Uptime and Pingstatus for list of computers. ####################################################################### $names = Get-Content "C:\Test\computers.txt" @( foreach ($name in $names) { if ( Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue ) { $wmi = gwmi Win32_OperatingSystem -computer $name $LBTime = $wmi.ConvertToDateTime($wmi.L…

  9. Started by njjudel2,

    Hi!!! I am new at SCCM and scripts. I hope someone out here can help!!! I would like to create a script or batch file to create shortcuts on my desktop .. I rolled out my os (windows 7) and applications using SCCM. In my rollout, the msi files don't create shortcuts of applications (word, excel, etc.). Anyone know how too....Thanks in advance!!!

  10. Hi, I am looking for a script to copy the Group Membership of one system to another in AD from a system which is not connected to domain, below is the script which i wrote but getting error " Could not find the Name or Insufficient Rights to see Name, at this stage "objTrans.Set ADS_NAME_TYPE_NT4, strDomain & "\" & strComputer2 & "$" " please help Basically what the script does is it will prompt for Old computer name for Source & new computer for destination & it will create a computer account & copy the group membership from source to destination computer. Option Explicit Dim strComputer1, strComputer2, strDomain, strOU, intAnswer, …

  11. 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
  12. Started by ecstrim,

    Hi all, I am trying to export everything from the production SCCM environment, using PowerShell. Collections, Applications, Packages and Task Sequence export works just fine, but the Driver Packages is giving me some trouble. I am using the following cmdlet, expecting to get the driver package with all the driver files in it Export-CMDriverPackage -Name $my_name -ExportFilePath $my_export_path -WithContent $true –Verbose –ForceWildcardHandling Any idea?

  13. Started by kmercer6,

    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…

  14. 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
  15. I have written a series on the PowerShell Deployment Toolkit (PDT). However, recently there has been a new addition of a GUI element. Check out the PDT GUI article on my blog here: http://adinermie.wordpress.com/2014/06/14/my-experience-with-the-powershell-deployment-toolkit-pdt-part-4-pdt-gui-for-powershell-deployment-toolkit/ Or check out the beginning of the series here: http://adinermie.wordpress.com/2014/01/26/my-experience-with-the-powershell-deployment-toolkit-pdt-part-1-downloader-ps1/

    • 0 replies
    • 4.3k 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.