Skip to content

scripting

need to script something ? do it here

  1. Hi, I already have a BAT script to find PST files and rename their extension to .pstx. (This is so that USMT doesn't pick them up in a migration) for /f "delims=" %%i in ('dir /s /b /a-d c:\*.pst') do (ren "%%i" *.pstx) That works great. But I need this script to ingore any PST files that already reside in the "Outlook Files" folder in Documents. (So that USMT does pick them up in a migration) What command can I incorporate in this script to exclude any PST files in "Outlook Files" ? Any help would be much appreciated. We are using this to migrate users to HVD and we are almost there! thanks Jan

  2. Started by Moggis,

    Hi is there any easy way to change the server for "Imap"Incoming mail server and Outgoing mail server, with a Script? i have to change it on around 200 clients... tryied to find resulotion but not... (the company is using LDAP, IMAP) //Morgan

    • 2 replies
    • 5.3k views
  3. 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
  4. Hi, How can I install a language packs on windows 10 1909 using PowerShell offline? These machines do not have access to Microsoft stores to download the language pack online. What files are needed from the FOD? how do I find which files belong to language pack and which files are for something else? I need around 16 different languages I already download the FOD but everything is in one folder. I try to install the Client_de cab but that doesnt install all other features like, keyboard, speech We have more then 4000 machine to do this on, I will be using sccm to do this but need to make sure all of the languages and script are avaiable locally …

    • 18 replies
    • 28.8k views
  5. I'm looking for a smiple batch file or script that will completely uninstall and remove any version of Java. Any suggestions on what to use? Thanks again!

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

  7. Looking to rename but have no idea how to package this. My script is below and think I'd have to bypass execution policy. Rename-Computer -NewName "PC0001" -DomainCredential Domain01\Admin01 -Restart Just not sure how to create a package for something like this.. Thanks for any replies.

    • 2 replies
    • 4.2k views
  8. 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

  9. Started by packager,

    Hi, What is the best way to make sure files from a folder is regularly deleted ? A script that would do that which can be deployed using SCCM or a script that would be deployed by SCCM that will make use of Task Scheduler ?

  10. Started by Eze,

    Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.

    • 0 replies
    • 2.4k views
  11. Started by Eze,

    Please do you have a handy PowerShell script to - delete object from SCCM and Active directory simultaneously.

  12. Started by gatorcb,

    We are trying to migrate from 2007 to 2012. Our collections won't migrate because we are using queries that reference a 3rd party product in 2007 that's not installed in 2012. Here's what we have select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client from SMS_R_System where SMS_R_System.SystemGroupName = "DOM\\APP-AdobeApproval" or SMS_R_System.ESDmemberof = "DOM\\APP-AdobeApproval" Since we have over 1000 collections and are still using ESD, we'd like to have a script return the above data to a file. Then we break that file up into smaller sections (…

  13. 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
  14. Hi all I have a unique situation, here is what i would like to do, unfortunatley not too skilled with PS. Every time a message ID 10800 is generated (10800 Informational Advanced Client The SMS Advanced client was installed. The current version is %1.) i would like to check for the left 3 characters of the computer and based on that add it to a specific collection. the collection is a direct membership with OSDAllowed = False, so no one can deploy to that system by mistake. Any help on how to do this greatly appreciated. Update: I actually had to use 10804, which is when the client is assigned. I am sure there is a way for a nicer and cleaner code :-( <> …

    • 0 replies
    • 4.1k views
  15. Started by chris83,

    Hello, i will change the Accent Color in Windows 10 with sccm. This not work reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "AccentColor" /t REG_BINARY /d ff767676 /f reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "ColorizationColor" /t REG_BINARY /d c4767676 /f reg add HKU\DefaultUser\Software\Microsoft\Windows\DWM /v "ColorizationAfterglow" /t REG_BINARY /d c4767676 /f i need only the change from blue (standard) to grey

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