Adding Account to Admin Group Remotely - Http 500
Hi all,I'm writing a PowerShell script that will automatically set up a build machine VM.Right now I'm stuck on adding a domain user to the local administrator's group on the VM:$localAdminBlock = ` {...
View ArticleBatch script to detect drive letter of a USB flash drive.
Hi, can you guys pls help me with a script to detect the USB drive letter of a flash drive. I was searching the forum here and I found one but it does not work. Here is what the script looks like. It...
View ArticleWhy can I access this share?
My company has a very convoluted set of file shares, groups, and policies. I would like a script to chase down these and tell me what in my permissions set allows me to access a share. It could be...
View ArticleHow do I find the drive letter by diskpart disk/partition numbers in batch...
This is a difficult one. I know of questions like this about finding drive letter by volume number in batch files which were answered, but in this case I don't have the volume number in the environment...
View ArticleHow do I find out about the driver letter of a usb drive by script, given the...
Hi all,I am wondering if it is possible by script to find out what the drive letter of a usb drive might be.I have just inserted my USB stick into a socked and the operating system displays that the...
View Article[Office365] Automate User Password reset using PowerShell
Hello,I need a way to reset the passwords of the users from a Office365 subscription. I want to automate this task using PowerShell and, most importantly, I need to automatically send the reset...
View ArticleBulk Import using CSV in Active Roles AD Powershell one
I am new to scripting. I have tried this many ways I am now asking for help. What am I doing wrong? Thanks in advance.I am using Active Roles AD Powershell one.I am tring to create new users using a...
View ArticleIm needing to run a called batch as a different network user, but I need it...
Im trying to use the runas command but that is a preset username, i need it to allow me to be able to login with a username and password to run the script. Is this possible? Even having a gui pop up to...
View ArticleComparing two CSV's
$UFMFile = Import-Csv 'C:\UFM\Tran1.csv' $TIPFILE = Import-Csv 'C:\UFM\TIPFILE1.csv' Compare-Object $TIPFILE $UFMFile -property PlazaID,LaneNumber | Export-Csv C:\UFM\TEMP.csv -NoTypeInformation...
View ArticleCheck local administrators groups of a massive group of pc's
I need a way to find out what the groups are of all the local admins of all of the pc's in my domain.Basically, I made a script that would remove one Local Administrator group then add another one. I...
View Articlescanstate & PSEXEC
My ultimate goal is to initiate the USMT command scanstate.exe on a list of PC's sumultaneously. Below is what I have working so far. It runs locally, creates a folder of my choosing and saves the...
View ArticleDetect EFI or BIOS with powershell
Is there any way to detect whether a machine is UEFI or BIOS with a powershell script (without using third party tools)?I would like to use this in a Dism script to apply images and build disk...
View ArticleWhat is the LDAP attribute for the Terminal Services Profile
I can find most LDAP attributes for AD but can not find the one for Terminal Services Profile, can any assist.I wish to query our AD for everyones TS Profile pathRegardsLeo
View ArticleHow to get computer names from a list of serial numbers
I've seen several discussions on how to get a list of serial numbers if you have the computer names, however I have a reverse problem. I have a list of Dell service tags (serial numbers) but I need...
View ArticleGet USB drive letter
Hi,Im trying run to very simple wmic command to output the drive letter of the connected USB drive. The command is "wmic logicaldisk where drivetype=2 get deviceid /format:value". The problem is that...
View ArticleAdd Users in Remote Desktop User Group in a Remote PC
Dear Scripting Guy,Good Day,Is there any way of adding a domain user in "Remote Desktop User Group" on a remote PC?Thank YouRegardsAbdul Wajid
View ArticleDomain Joining Script
Hi,I have a requirement for vbscript to join workstation PC's to Domain. The requirement is as belowThe script should prompt for Computername, username and Password for Joining the PC to DomainThe...
View Articleneed to perform the below task if the users are exist in domain & those sud...
Import-Module activedirectory Get-Content users.txt | ForEach-Object { Set-ADUser -Identity $_ -ProfilePath "\\Testmac01\t1\$_" -homedrive "Y:" -homedirectory "\\Testmac01\t2\$_" }AliahMurfy
View ArticleInstalling Printer on Remote Computers Using Script
Dear Scripting Guy,Good Day,I have prepared below script for local printer installation that are connected to Network having an IP address.Is it possible to modify this script and make it as to install...
View ArticleBest way to write a script or .BAT file that will delete the registry entries...
Hello Everyone,I am currently learning how to write script files for our server's, but i wondered if anyone knew the best way to write a script/bat file that would remove the profilelist from the...
View Article