powershell get-service -computername
I am using a powershell script to check if all necessary services in a 9 server cluser are running. get-service ServiceName* -ComputerName Server1, Server2, ... Server9 ## with WINS names or...
View Articlepowershell char*
Hi!I use power shell and I want to call the „titop_getNextCommand” function in one XXX.dll file. The function need 3 parameters, but I cannot give char*.int getNextCommand (char* command, char*...
View ArticlePowershell - now to extract name of variable passed to script
I am writing powershell script to interface with an external software program our company is usingThe script needs to take in value of the input parameter and do something.But the problem is, this...
View ArticlePowershell - unable to read hash value
I am writing a simple script to get more familiar with powershell.This script reads input parameters into a hash$states = @($args) $states write-host Color is $states.colorOn the command-line, I set...
View ArticleHelp with script for printer management
I am not particularly proficient with powershell scripting. I found a script online that is supposed to assist with some printer management things; specifically, adding permissions to a bunch of...
View ArticleCan my script be improved? trying to learn more scripting
Hi all,I am fairly new to all this scripting stuff and i have been tasked at work to uninstall an application and then install the new version. Unfortuantely for various reasons, this is a ****...
View Articlehelp find software in the registry and then run the uninstall string
Hi all,I need to find a script (batch) if possible that runs in a computer startup.bat script that will scan through the registry, find the GUID and then run the command to uninstall.Currently in my...
View ArticleAdding new user to security group
I have a .vbs script that up until a week ago flawlessly created users in Active Directory from a .csv file and then added them to the desired security groups. Now the users are created but are not...
View ArticleInvoke-command with an expression fails to run on remote machine
Im attempting to run an expression on a remote machineRun locally the following works$Msdeploy = "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" $Expression = "& '$($MsDeploy)'...
View ArticleAccessing an Access Form Control from PowerShell
I have been trying to convert an old VBScript to PowerShell. I have successfully converted all but one innocent-looking sub. In the sub, I need to access a textbox on an Access form, but for the life...
View ArticleHow to "hardcode" the RunAs functionality in Powershell script
I have Powershell script that will extract an IP address and output the current user logged on only if I use the domain service account by using Run-As, i.e. Shift+Right-Click on the cmd.exe and invoke...
View ArticlePS script works in console, but fails when called from cmd prompt
I have a script that quite simply sets ACLs on a few reg keys and a folder. Nothing too complicated at all. The script works perfectly when run from the console, but when called from a command prompt...
View ArticleHow to find all properties of RecordData from Get-DnsServerResourceRecord
When I use Get-DnsServerResourceRecord I can obviously get the zone details, but I'm trying to do a select-object on the RecordData column which isn't straight forward since it's not a simple text...
View Articlevbscript and HTA: how do I fille a select box with a list of subfolders?
I know how to read a text file into a select box...Sub LoadClass strNewFile = "classes.txt" Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile _ (strNewFile,...
View ArticlePowerShell with Credentials
I have an issue with trying to use a stored set of credentials and invoke an executable using the stored set. Example standard Domain User running migwiz.exe will not work. I would like to create a...
View ArticleCreating an updating webpage to display drive mappings
So I am looking to convert my VBScript Login script over to powershell, and I am looking for information on how to have powershell create(open) an IE session and to automatically update as drives are...
View ArticleA question regarding the ADD method of Type...
HelloCan someone please help me the following qustion please.using the above class/type I can get an SSL certificate from one computer and add to the x509 store to another computer like socls $Store =...
View ArticleScript to alert the user that their password will expire em X days - AD
' Script to alert the user that their password will expire em X days - Active directory' Daniel Tolouei ' Days before to alert userQtDiasAviso = 7Const ADS_UF_DONT_EXPIRE_PASSWD = &h10000Set...
View ArticleExchange Management Shell Syntax - An empty pipe element is not allowed
Hello!As part of an AD migration project, thousands of linked mailboxes need to be reassociated to their newly migrated AD accounts that are now in the same forest as the MEU hosting the mailbox. We'll...
View ArticlePowershell Script
Hello Everyone,i'm not much of a scripting person so i'm here to ask the expert. what i need to do is pretty much the following:Map a network share base on IP provided and report folder size for a...
View Article