SwbemObjectEx: Class not registered
I am using the below script to write the data path of my application to the registry.Function WriteRegValue(KeyPath,ValueName,Value,ValueType) Dim strComputer, oReg const HKEY_LOCAL_MACHINE =...
View ArticleWindows 7 x64: Execute a 64bit exe/script from a 32bit command prompt?
Anyone have any tricks up their sleeve to do as the title says? For example:I'm working within a 32bit app that calls a command using cmd.exe. In taskmanager we see cmd.exe*32 From that cmd.exe, say...
View ArticleHow to Enable DTC Security Properties in Powershell?
I am looking for a powershell script to enable the following settings:(Windows Server 2008)1. From Component Services-> Computers -> My Computer -> Distributed Transaction Coordinator ->...
View ArticleNew folder and modify access rights
I have played around with a script. My script looks like this:#Variables$GroupNameTIA="F_KSMCommon-common-ScanTIA_m"$Directory = Read-Host "Folder name: "$DirectoryPath = "z:\$Directory" #Mount...
View ArticleWMI Query with WHERE clausule string ending with dot(.)
Hello,i am doing SCCM task sequence with WMI Query to recognize BaseBoard. It is working on many Products with this query. But ASROCK have some Motherboard called somethink R2. If i do wmi query in...
View ArticleHow can I force close an application ( same as end task ) and restart again...
Hi,I have an application running on a remote server, which should be force closed ( End Task )and reopened ( start ) again. Daily we use to log into the server to carryout this task.Need some help...
View ArticleHow to write "icalcs /deny everyone:(CI)(OI)W" command (on win7) with win xp?
Hello, i want to know how to write a command like "icacls dir /deny everyone:(CI)(OI)W" on windows xp. Afaik there is no icacls on windows xp, so i guess this should be done with just cacls? I want to...
View ArticleHow to create device/osdevice element into BCD file with powershell?
instance of BcdDeviceElement {Device = instance of BcdDeviceFileData{AdditionalOptions = "{9fc76b9c-f8ef-11e3-a7ec-7446a093755c}";DeviceType = 4;Parent = instance of...
View ArticleReset Password for users!!!
is it possible to write a script that runs on a client system and ask user to change his/her password?(Old Password/New Password)(Active Directory),it is because we need to give another user Account to...
View ArticleCacl command to modify permissions on multiple file shares
I am running below mentioned command to give myself full access on the file shares without making any changes to the current ACL of all shared folders. However, it is not working and not even throwing...
View ArticlePowerShell for Managed Service Providers
I work for an IT Managed Service Provider for small to medium business clients that will have non-standard environments.I am trying to find sample PowerShell scripts/modules that would help to mantain...
View Articlevbscript - stop windows update downloading process after it was triggered
If you look at this vbscript forSearching, Downloading, and Installing Updates (http://msdn.microsoft.com/en-us/library/windows/desktop/aa387102(v=vs.85).aspx) in one section of the code we have:Set...
View Articlerun a powershell script on every user login/unlock
Hi everybody I need to run a powershell (that opens an interactive dialog box) when every user log in or unlock session or remote connection to this server. In other words it have to be run every...
View ArticlePowerShell/WPF Adding an "Event Handler" to Radial botton when using thread...
Hello Can someone please help me with the following queryI am creating a PowerShell/WPF script and as I do not want the UI to hang will the script of off doing it stuff in the back ground I am using a...
View ArticleA script for copying smilar files to a new location
Hi, i newbies to scripting. My challenge is that I want a script to only copy files with names "similar" and not "exactly the same" as the filenames in the text file.For example some files have 10...
View ArticleWin Server 2008 R2, Remote Desktop Farm: Connect to running session via script
Hello! Currently we're using RDS without session broker. We have user accounts for specific purposes, i.e. for users in the warehouse or general sales areas. These users are permitted to have...
View ArticleDomain computers inventory
Hi everyone,I am looking for PS script to search all AD computers and give the following csv output:computername, description, dn, OS type, state (disabled or enable),lastlogontimestamp, bitlocker...
View ArticleHelp with killing outlook
Hi guys,Been trying to sort this issue out but im having no luck....PLEASE HELP!So i have a deployment tool which installs some software however it needs Outlook to be closed. The below is the command....
View ArticleLocal administrator name(language) on remote computer
I have a big number of computers around, which I would like to have inventoried. Issue is that some of those have native US-US locale and some of them RU-RU, so the local administrator account could be...
View ArticleNeed help with Powershell script
Hello Everybody, ive been searching arround for a script that will help me accomplish something on powershell, the closest ive found is found on this link...
View Article