Start a script as administartor from within a script (Batch)
Hi,I have a Batch script that is started remotely from one computer(PC-X) on another(PC-A).Now within the script tat is running on the PC-A I want to triger another Batch script (or command) with...
View ArticleExecution of application with parameters question
Hi everyone,I know this question has been asked a thousand times before and has quite a few answers, I just couldn't really find what i was looking for so here goes.I have an application that I need to...
View ArticleDetermine Terminal Font Size
Hi Scripting Guys and Gals!I've got a Powershell script that I drop into my Powershell Profile so I can dynamically scale the Powershell window size to match that of my display. It's one thing about...
View ArticleGet-TSServers cmdlet not returning all terminal servers in the domain
Hi Scripting Guys,I want to list all TS Servers in the domain, using Get-TSServers I am getting random list of TS servers. Any idea?Can anyone let me know what exactly this cmdlet is querying in active...
View ArticleHow do I know if the user is belong to Mail Restricted Group/s? Do anyone...
Hi Guys, Good day, I'm new in powershell scripting. Will someone can help me about my problem?Thanks.
View ArticleWindows script needed for the following tags
hi ,I am currently automating a web task using windows script.For the below source script , i need wsh script<td title="Export Report" class="ui-pg-button ui-corner-all" style="cursor: pointer;"...
View ArticleHow get Hta Retrun Code
In vbs, I can use wscript.quit() to return code,In hta, self.close(x) or window.close(x) is always '0' So how to get the return code from hta?
View ArticleFind network printer configuration remotely
Hi all, I am new to this forum, I hope someone would help with this, I am looking for vb script which helps me to get the printers with specific configuration, I want to list all the printe queues...
View ArticleCreate new files then name them from a document
Hello,I would like to write a script or program that will create files and name them based on a list of names in a document.I looked through previous questions but was unable to find an answer to this...
View ArticleHow to number the list of documents
Hi every one . I am writing a script which show list of all the folders in a directory in desc order and than copies the most recent one to the new folder location. I have actually accomplish this part...
View ArticleGetting Local User SID from a list?
Hi Guys,I'm afraid my scripting knowledge is not very strong and am trying to learn it as i go along.. but I'm stuck in the mud with something I'm trying to accomplish.I'm using the below script I...
View ArticleHow to format datetime in powershell
I am trying to format the datetime for my folders once they are sorted into descending order . At the moment I have datetime format like 25-04-2014 and I would like to to get displayed 25th april 2014...
View Articleget-adcomputer or get-qadcomputer in an ou
how do I get a list of all machines in an ou?trying Get-QADComputer -SearchScope "ou=win7,ou=desktops,ou=phase1,dc=domain,dc=com"and doesnt work
View ArticleCan anyone help with an AD PowerShell script?
Hi all,I have a script that imports a csv file. The CSV file has the following headers: Name,Operating_System,_Domain_,MAC_Address,VendorThe script then is supposed to use the Get-ADComputer cmdlet to...
View ArticleFind out from the machine name, what user is logged in
thank you. Is there a way to find out from the machine name, what user is logged in or who the machine belongs to?I can actually find out from the username what machine they have because there is a...
View ArticleSaving page in file
Good morning, I'm developing a project in Powershell. My code is below. Basically it should log into gmail site and save content to file. But I am not getting save the page of my emails on file. I've...
View ArticleUnable to register Windows Shutdown Script via GPO using Powershell
Hi,I'm trying to register a Windows 2012 Server shutdown powershell script using powershell to modify the registry & create the psscripts.ini file, but the shutdown script does not run. The script...
View ArticlePowershell - Bulk Set-ADUser attributes via a CSV file
I am attempting to do a Bulk replace of AD User account attributes via a CSV file. Each line in this script works except the part of Set-ADUser where I enter -Replace $attribs. I'm not sure how to...
View ArticleWait for network connection - ping
I have a batch file that runs at startup that attempts to connect to a server and keeps trying until the wireless network connection is available (it connects about 60 seconds after login) then...
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 Article