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

Covering date output to a more friendly format

hi all,a simple PowerShell script that has the following: ( and I want to thank ed wilson !!!!!!) The only issue is the Uptime comes out 9.45.56.484848 How can I convert it to break it so the output...

View Article


Batch file to html report generator:

I want to create reports based of the batch file that I run.I created a batch file to run a number of programs for this PC tune up service that we do at the University I work at.  This is mostly a...

View Article


Cannot Load Backup-database cmdlet in powershell v 3.0

I am trying to work around with writing powershell script to backup sql server 2008 R2 database but the example i have searched they require to add backup-sqldatabase cmdlet, but i am unable to see...

View Article

Exporting all ACTIVE AD users only

Like the title insinuates, I'm looking for a method of exporting my AD users. However, i have the ability to do this already, but i'm looking for a method of exporting only the active users. There are...

View Article

Win32_ScheduledJob -- Windows 8

Hi Guys,ScheduledJob doesn't works under Win 8 / 2012. We need it for some scripting stuff in our Domain. Powershell isn't a alternative!We need it urgent, otherelse we can't support any new...

View Article


PowerShell script for AD name change

I need to change all users logon name in AD to their first name.last name    Server 2003

View Article

PowerShell Scripting help to combine two scripts

I have a script that helps automate virtual server builds.  The script creates a specification document which is used to perform the actual builds.# Spec-And-Build.ps1 - Loops through a directory and...

View Article

Mapping custom network drives and using AD groups

I'm trying to write a script that maps users to custom drive mappings (mapping not assigned in AD) and pull drives from AD. As of now I can achieve my goal but the problem is when a user doesn't have a...

View Article


Outlook Perfmon Counters

Wonder if someone can help me?  I am accessing the Outlook performance counters (see here:...

View Article


wsf to enable remote desktop on Windows 2012 R2

I have a simple wsf that enable remote desktop on windows 2012.  I have no problem setting the registry value, but my netsh command doesn't seem to work, and with no errorFunction ZTIProcess()...

View Article

Small patch for New-IsoFile

I made a slight change in how New-IsoFile creates the temporary file if needed. The original used a timestamp for the filename, but I wanted to use the real GetTempFileName-call. The two changed parts...

View Article

Script to identify computer lastlogontimestamp and disabled status

Hello,I am trying to piece together a script that will perform a few functions. First, I need to identify the lastlogontimestamp for all computer accounts over 90 days.  From that list I need to add a...

View Article

Script to Open XLSX, then Save as HTM

Hello, I'm a bit new to scripting. We have a spreadsheet where we keep inventory. It is Excel 2010 (.xlsx). We also have an internal (IT) "info" web where I would like to be able to click a link to...

View Article


Powershell, information about ODBC DSN from servers to database

Hello,I have a question regarding moving data from format-list/format-table to database to the databaseI want to pull out data about ODBC created on the server and load them to the database - so far I...

View Article

Alert Based on Last write time

I am writing a script based on the last write time. For the most part it works; however, the script sends out an email everytime the script runs. Ideally, I would like to have the email sent only when...

View Article


IPADDRESS/SLASH Help

Hi Scripting Guys,I've got a script which works perfectly on Win8 but fails on Win7 which must be down to the PS version, I am using V2.0 on Win 7The error I get is as followsMethod invocation failed...

View Article

Importing CSV File Into Access 2010 Database

I've been doing some reseach on how to do this, but haven't been able to find a very simple example - like my case is. I have one CSV file that I would like to import into an Access database (2010). I...

View Article


PowerShell To Create Access Database

I found this other answer to this question, which I modified to be the following: Function Create-DataBase($Db){ $application = New-Object -ComObject Access.Application...

View Article

Batch file to perform forward/reverse lookups on environment

Hi everyone, I am starting to go snow blind looking at so many different posts/blogs etc and not made too much progress. Firstly I am not a programmer, I just do not have the mind set for it. I am...

View Article

Import-RecipientDataProperty

I have a script that I use to upload photo's into AD and Exchange.  I'm wanting to know if it is possible to automate the script to do the following:1. Check to see if the AD account has a photo, if...

View Article
Browsing all 15028 articles
Browse latest View live