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

Powershell Date and Echo

Hello,I am trying to echo the date to a file so i can basically just record the last day the script was ran.  I do not what the exact time, but just i am happy with dates.Anyways i simply do this:$DATE...

View Article


Event Logs Formatting

Hello Everyone,kindly assist on how i can format information from this powershell command to only get specific information. i.eLet say i wanted to only output Caller Computer Name and on a Separate...

View Article


Find and replace string in a file using batch script

I am writing a batch script to replace " ", with " ". The below code works but it prefixes each line with the line number and :. It is the last part of the line that I am trying to replace.E.g."...

View Article

DSC xWebsite doesn't work properly in Windows Server 2008 R2 SP1 because of...

I'm trying to use DSC to create a new web site using a configuration similar to http://gallery.technet.microsoft.com/scriptcenter/xWebAdministration-Module-3c8bb6be. What I found is if the web site...

View Article

New_ADUser script

HiI have written a script to add new ad users from a csv file and after a few tries now have it working. I'm also trying to add these users to groups in the same way. My csv file contains a column...

View Article


HOW TO USE GMAIL TO SEND MESSAGES FROM COMMAND PROMPT?

HAY MICROSOFTY,I HAVE A QUESTION.I DISCOVERED WERY USEFULL COMMAND IN COMMAND.COMIT ISPOWERSHELL -COMMAND -SEND-MAILMESSAGEI WANT TO WRITE A BATCH PROGRAM (WHICH CONTAINS MIXED CMD AND POWERSHELL CODE)...

View Article

Trying to get this to work: "Move and Disable inactive computer accounts from...

Hello,I've been trying to get the Powershell script "Move and Disable inactive computer accounts from Active Directory" working in my environment....

View Article

Registry or Command Line to set Local Security Audit Policy on local machine

How to set Local Security Audit Policy on local machine either by registry or command line.Below settings are required to be set on multiple machines in workgroup environment.Security Settings >...

View Article


Using -match in an IF statement that is used in a foreach loop

Hello Everyone,I have a script that is working, but I have a behavior that I cannot explain. This script asks will count the number of times a word is used inside a text file. The following script...

View Article


How to Check files which is older than 14 days in particuler folder using IF...

Hi,I have to check the zip files created before 14 days by using Batch script.Any conditional statement needed ?Thanks,Jitu

View Article

class doesn't support automation 'getobject'

Hi all,I have written a script to get a list of local users who are also part of local administrator group. But on some systems I'm getting an error as said in the subject. Below is the script I'm...

View Article

Convert PDF to Word

I have a PowerShell script that converts Word documents to PDF.  Now that Word 2013 can read PDF's directly and can then save the PDF as a Word document, is there a way to do so in PowerShell?Thanks...

View Article

need to list all PST on each PC's connected to Network

HIWe are in process to purchase a e-mail archiving solution. We are thinking for CAPACITY based licensing option. For that purpose I need to know details of each PST on each PC in our domain. Is there...

View Article


Find OS Install date across all computers in AD

Hello,I'm kind of a new guy at this. I have parts of the script, but I don't know how to link them together. I want to generate a list of computers with the date the OS was installed on. Here's what I...

View Article

Powershell Script to obtain current members of groups inside group of Domains...

Hi,I have some servers that inside group domains admins i have users and groups. I need to list this groups and his members like the example:Server 1              Group 1...

View Article


Powershell Script that adds dns suffix for this connection, append these dns...

Hi,  I'm currently trying to write a powershell script for both Sever 2008 R2 and Server 2012 that configures the TCP/IP V. 4 Network Interface settings.   I have figured out how to set the static IP...

View Article

Report AD display name & computer hostname

Hi Id like to keep track of which user is using which computers on our network and use the data gathered to feed into other scripts.Ideally 3 columns,  Windows display name,    ad account name,...

View Article


Power shell Copy-Item woes

Hi There,I've a requirement where I need to copy certain directories and certain files from a patent directory such as file, dir, dir, dir\dir\dir\file, dir\fileThis is what i tried to do. When the...

View Article

Powershell Upload Data without SQL

Hi,I'm currently doing a script that is reporting on a server but we do not have SQL installed nor do we have the possibility of installing SQL at present, is it possible to store data in a text file...

View Article

Technet script: 'List Membership In Privileged Groups'

Hi,There's an excellent script for auditing members of privileged groups in Active Directory and as I've used this in numerous environments I think I've found a slight issue.The below page suggests...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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