[Solved] Simple .cmd-script to change windows administrator password on local...
Hi!I want to use a .cmd file with the "net user [username] [password]" command to set a Windows administrator password. I want the password to be picked up from a .txt file, depending on the computers...
View Articlehow to implement ctrl+l for windows cmd?
In linux terminal as I give ctrl+L signal, terminal screen clears. I found that cls command is used to clear screen in windows. How can I make ctrl+L signal in case of windows cmd to clear screen.
View ArticleWHY WHY WHY WHY doesn't this work!!!
AllSo if anyone can explain why Import-csv C:\Temp\aliaslist.csv | Foreach {Get-Mailbox -identity $_.Alias | Remove-MailboxPermission -User wsht.local\svc.qmm -AccessRights FullAccess -InheritanceType...
View ArticleFind domain admins group for computer
Hey,based on a short cleanup I try to find the Domain Admins group of the domain a computer is member of with powershell. I am trying to not use the Active Directory module since I cannot be sure it is...
View ArticleGet the latest entry of an event id by get-eventlog
Hi,I want to extract the last log entry from event logfor example, i like to have the last (newest) event id 4672 in event log (using powershell not wevtutilso i should use get-eventlogbut the problem...
View ArticleBios Boot Order list in windows
Hi, I want to display bios boot order list in windows system without going to Bios Setup.So is there any query or command to get boot order list in windows system which is applicable to any...
View ArticleHow to create this script (for IIS using PowerShell )
I'm trying to do the next : 1- get the website name (hosted on IIS )2- Change the physical path credentials (Connect as from GUI) I know the command to get the website name it's (get-website | FL...
View ArticleFunction question.
Hi Guys,I just have a quick function question. I'm getting in the habit of compartmentalizing my scripts into functions, and I'm running into a small issue. I'm trying to pass a variable back out of...
View ArticleRename mapped drive with powershell
Hello,I would like to rename mapped network drives via Powershell.here is the script i found on the inernet and i have modified it slightly.param($deviceID = "R:", $name ="NewTest") $drive =...
View ArticleMS Security critical updates Installed..
Hi SCRIPTING GUY,I'm new at scripting (zero). I need a script that I can run which will report current critical patches installed to include the date installed.Thank you.RICHTC
View ArticleHave the msol cmdlets been replaced by azure cmdlets or something?
I was helping a coworker install and set up the 365/Azure cmdlets on her laptop today. Following the instructions on this page: http://technet.microsoft.com/en-us/library/jj151815.aspx She downloaded...
View ArticlePerform remote intallation via script
Hi,My aim is to push script (.bat file along with the installer or any other task that would run on any client within my network)I have two batch file named remoteload.bat and remoteload2_kb.bat,...
View ArticleLastWriteTime help needed
HiI have searched around for a while and decided best to ask.The Environment and what I have done thus far:I have a lot of computers that are part of 1 domainI have all of the computer names listed in...
View ArticlePowershell Script to copy mobilephone number to telephone number
Hello Friends,I need a powershell script to copy mobilephone attribute to telephone attribute.Scenario is below:I have Group "Test1" , I need to copy mobilephone attribute to telephone attribute of all...
View ArticleModifying Host File
Hi, We have a requirement to modify Hosts file of all the PC's in Domain for which we require a script which can be applied through GPO.The requirement is to first read the hosts file for 4 Host...
View Articletwo variables in for /f loops
hi friendsi have learned how to create many domain users using a simple text file (each user is located in one line)for /f %v in (c:\users-List.txt) do dsadd user cn=u%v,dc=mydomain,dc=lab (that's...
View ArticleOpen, Write and Close the file using Powershell
Hi All,I need to create/open a file and write some data into it and close that file.Could anyone please help me with this.Thanks.
View ArticleHow to Combine Two Different Vbs Scripts?
I made 2 vbs scripts; CODE 1 (to learn remote monitor info)CODE 2 (to learn remote computer info) But I was not able to combine them. [I confess that I have no enough knowledge to do it :( ] I tried...
View ArticlePowerShell Script to Change Recycle Bin Settings to "Don't move files to the...
Good morning,I am in the process of automating server 2012/r2 deployments using MDT and would like to be able to change the default settings for the Recycle Bin for various drives (C:\, D:\, and...
View ArticlePowershell : Issues with user input collection from Multiple InPutBox Form
I am having issues with getting user input to pass from a form that a user fills out into variables that I can then use in other methods and commands. (ex; SQL Query, SQL Data Add, ... )I have attached...
View Article