Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Need help with easy script for open / close app and move files

Hi, I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd.. I actually learned ASCII C language on university but never used it in real. I'm trying to...

View Article


Exchange 2013 mailbox auditing command with showdetails parameter in ps1...

Hi All , In my environment we are having exchange 2013 enterprise edition with SP1 which is installed in windows server 2012 standard edition. We have enabled mailbox auditing for few mailboxes and...

View Article


Creating Mailboxes and Setting AD Properties in Powershell

We're on a hybrid email environment. I've managed to create a Powershell script to create bulk mailboxes (see script below). But I needed to add an additional proxy email address to it but the script...

View Article

PSCX Invoke-BatchFile afterlife

Hi!I have created a topic on Server Fault, but noone answered.http://serverfault.com/questions/612972/pscx-invoke-batchfile-afterlifeMay I get some assistance here?Thanks in advance,Máté

View Article

Powershell - Finding a particular line in a doc/docx file and chopping it up...

Hey, I have many word documents that contain references to figures, these figures are drawings. Is there a useful method of searching for these figure numbers and cutting them up into useful...

View Article


How can "multiple folders/files" be deleted in ONE PSEXEC COMMAND LINE

I can delete remote folders/files via bat command with psexec (below) but;  It takes a little time because of the 9 different folders. Maybe, looping of txt file can be used for different folders. So...

View Article

Sort-Object culture related results on top

I have plenty of AD users. Which I am trying to sort, my query results just good apart from that I want to get Russian named user accounts first (on top of results), I use DisplayName attribute for...

View Article

Problems setting properties of app pools in PowerShell

Hi all,I'm writing a script to deploy web applications to web servers.  In the middle of the script is a code block which should allow the user to change the properties of the application pool as they...

View Article


script to list windows architecture from list of hostnames/ip and output file...

i script to list  windows architecture from list of hostnames/ip and output file both 32 and 64 to two differnt file

View Article


Power shell search one column of a csv file and replace text in that column

I have a huge CSV file.Column J has number which represents states.I would like to search through column J of output.csv and replace the number with the state name.     J State233219233210Becomes...

View Article

How can I turn this output into a variable

I have a script to query all the servers in ADImport-Module active* $rtn = $null Get-ADComputer -Filter {operatingsystem -like "*server*"} | ForEach-Object { $rtn = Test-Connection -CN $_.dnshostname...

View Article

powershell wmi printer and pnp export to csv

hello i am trying to export to csv; all of the devices found on multiple computers using powershell and wmi, when trying to capture either printer data or pnp, i am only able to loop 1 data value to...

View Article

Powershell and AS400

Are there any powershell modules that can allow me to conect to authenticate and run commands against the AS400?Paul Arbogast

View Article


Return powershell Function variable back to VBScript

Hey Scripting Guy,I have a vbscript function that I use to call a Powershell Function. I need to return the powershell output back to the calling vbscript. I've tried different methods but I can only...

View Article

Can anyone help with a powershell script using the search-adaccount cmdlet to...

Hi,I have the following script that is supposed to search AD for all user accounts that haven't logged into the domain in more than 90 days.  I first did not have the where-object clause because I...

View Article


How to exclude characters from cell, while creating CSV file

I'm very new to scripting. I created a script that places info into a CSV file, but one of the columns, I want to remove some of the text.$Session = New-PSSession -ConfigurationName Microsoft.Exchange...

View Article

delete MSSQL table using vb

I need to delete a data base table using VBScriptI have it like this so far but still doesn't work, any help is highly appreciated  Set sqlConn=CreateObject("ADODB.Connection")...

View Article


IE 11 WMI Java Script 'GetObject' is undefined

I'm using Windows 7 with Internet Explorer 11. I have created a very simple JavaScript function to retrieve client machine information in an ASP.NET Page. I'm using the following code to get the client...

View Article

How do I have an exe in a logon script run as a different user (either a...

So, I'm having some problems getting a logon script to work.  I need a way to deploy the agent that we use via login/startup scripts and what I have works fine if the user has admin rights, or if UAC...

View Article

File deletion in root and subdirectories.

Greetings,I have a question regarding Batch scripting. I am trying to create a system maintenancing script which removes .TMP and .BAK files from all of my drives both subdirectories and directories...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>