Skip to content

scripting

need to script something ? do it here

  1. Started by jamitupya,

    Just something i use to modify the default user hive for our windows 7 deployments.... @ECHO OFF REM ***************************************************** REM Script configures the Default User Profile REM ***************************************************** echo. echo. Load default profile HIVE and apply registry settings. echo. REM Load the default profile hive REG LOAD HKU\Default C:\Users\Default\NTUSER.DAT REM Configure the default user profile REM Customise Wallpaper Theme Screensaver etc. REG IMPORT HKDUser\HKU_ControlPanel_Desktop.reg REG IMPORT HKDUser\HKU_Themes.reg REG IMPORT HKDUser\HKU_Software_MSWin_DWM.reg REG IMPORT HKDUser\HKU_ControlPanel_Colo…

  2. Hello all Running SCCM 1606 Hoping I can get a push in the right direction. I'm looking to uninstall a program on a few hundred PC's. The package was deployed via SCCM , but the uninstall does not work so I dug up an PS script from online. The following PS Script works just fine if it's ran locally on the clients. $appVer = Get-ChildItem -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall, HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | Get-ItemProperty | Where-Object {$_.DisplayName -match "Some Application" } | Select-Object -Property DisplayName, UninstallStrin…

  3. Started by jace5869,

    Basically what I need is a script that will somehow look at the MAC address (possible through ipconfig /all or sysinfo or something) of the Local Area Network connection (on-board NIC) and change the computer to something like: C:> ipconfig /all IP ........................... 192.168.0.2 Subnet mask............ 255.255.255.0 Default Gateway....... 192.168.0.1 MAC........................ 00-1E-4F-F5-89-66 Add 'US' to the MAC -> US00-1E-4F-F5-89-66 -> Remove the dashes -> US001E4FF58966 Sorry, for dragging out all of that, I just didn't want any misunderstandings about what I was trying to achieve, I'm not great at scripting at all -- I…

    • 4 replies
    • 14.6k views
  4. 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???

  5. Hello Not sure where to post this so sorry if in worng place Thank you for reading my post. I am brand new to scripting so my apologies if this is rather basic – But everyone starts somewhere. We are running Windows 7 desktop on a 2003 Enterprise domain. I need to copy some short cuts files (eod8 extension) to the start menu under “All Programs” in a folder called “EOD”. The users must be able to save and open the shortcuts (so using the All Users folder did not work since a standard user can’t save to that location) So I am copying the files to the local user profile. My Script setlocal set Installpath=%~dp0 mkdir "C:\Users\%username%\AppData\Roaming\Mi…

  6. Hi, I have to modify a distribution point value with powershell script. The value is PrestageAllowed who locate in wmi class SMS_SCI_SYSRESUSE like screenshot http://imageshack.us/photo/my-images/27/sanstitrewi.png/ Thanks fz

    • 1 reply
    • 5.8k views
  7. Hi WN I created a function to connect to the CMSite and load the cmdlet for ConfigurationManager. Could the function be improved in any way or is it as good it can be? is the logic best practice or? You can download it at : https://gallery.technet.microsoft.com/Connect-ConfigMgr64-db5e9d0a function Connect-ConfigMgr64 { $initParams = @{ } if ((Get-Module ConfigurationManager) -eq $null) { try { Import-Module "$($ENV:SMS_ADMIN_UI_PATH)\..\ConfigurationManager.psd1" @initParams -Scope Global } catch { $ModulePath = (Get-ItemProperty HKLM:\SOFTWARE\Wow6432Node\Microsoft\ConfigMgr10\Setup -Name "UI Installation Directory").'UI Installatio…

  8. 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?

  9. Started by Ocelaris,

    Anyone by chance have ez-execute ? It's a front end gui for psexec. I'm running late on my SCCM pushes, and have to do some manually, so having trouble doing it all with psexec. It used to be here: http://www.penguinbyte.com/software/ezexecute But that link no longer works everything seems to point to the above link... http://www.savagenomads.net/2007/03/19/ez_execute_freeware_gui_for_psexec/

    • 1 reply
    • 16.4k views
  10. Hey Just want to streamline this code a little, it does what I need it to do but think it can be smoother. So I query all installed apps on a x64 Win 7 box, creates an array, I check if the array contains the program I'm looking for and if true do nothing else install program. Is using IF the best way, cleanest way? I'm integrating it into the app deployment toolkit as there are a number of applications I have to install that required multiple components and want to make sure it checks if needed or not (during some testing it failed when the application was already installed). Code just looks messy. (Write-host is only there for testing to make sure it does wh…

    • 0 replies
    • 4.4k views
  11. Started by Adam Branham,

    Hello all I am trying to learn all I can about SCCM for future employment however at this time I have no access to push patches using it. From time to time I am asked to patch multiple system and doing them one by one is a pain. I have been unable to find anything which was helpful and had some type of logging for patches so I punched this up. Eventually I will be expanding on it and will have some error control when the execution of the script fails but I am still working on that. If anyone has some input on it please let me know. Until then enjoy and I hope it helps you out. RemInstall.zip

  12. Started by MadMacs77,

    Environment: SCCM 2012 sp1 Problem: Installs of Flash are failing with error 1603 Workaround: User runs http://support.microsoft.com/mats/program_install_and_uninstall/ Desired solution: Running a fixit script via a package on a collection of machines with these failed installs. Has anyone done this before, or knows how? I've been poking at it, but I've not found a clear "Here's how to script fixit" Thanks

  13. Hello Folks, I'm new to this forum. I believe that this is right place to post my query here. Here is problem with SCCM. I wrote a script that copy file from desktop to shared location. the script works perfectly fine when I run as administrator. Created package \ application for this script and deployed to my test machine. but It doesn't do anything while installing from my test machine even though I checked run with admin's right in SCCM. FYI: Method 2: Created bat file that calls my power shell script. No luck yet all! Method 3: Run the Powershell script by using coomand line i.e Powershell -ExecutionPolicy -Bypass -file "fi…

  14. 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
  15. Hi, I am trying to create a script that automatically populates a database with existing computers. It queries the local machine for UUID and computername then creates a new record for the machine in the database. This works perfectly at the moment. The problem is, once the record is created, the linked view "ComputerSettings" isn't updated. I am looking for a way to programatically update the ComputerSettings view using vbscript. Does anyone have any ideas? The database i am referring to is MDT

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.