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 ArticleBatch 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 ArticleCannot 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 ArticleExporting 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 ArticleWin32_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 ArticlePowerShell script for AD name change
I need to change all users logon name in AD to their first name.last name Server 2003
View ArticlePowerShell 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 ArticleMapping 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 ArticleOutlook Perfmon Counters
Wonder if someone can help me? I am accessing the Outlook performance counters (see here:...
View Articlewsf 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 ArticleSmall 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 ArticleScript 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 ArticleScript 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 ArticlePowershell, 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 ArticleAlert 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 ArticleIPADDRESS/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 ArticleImporting 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 ArticlePowerShell 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 ArticleBatch 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 ArticleImport-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