Tag Archive for Tips and Tricks

PowerShell Commandlet – Compress-Archive to create zip files

folder-compressed-300x225

As I am constantly dealing with log file management on my servers, I have always relied on batch files to use PowerShell commandlets to move log files. And then I had to run other processes to manage the log files in a destination area.

 

 

I found this handy PowerShell commandlet called Compress-Archive.  You will need PowerShell version 5.0.

The link to the official documentation.

Anyway, this little routine has saved me some steps and with my log file management issues.

I simply zip files with and have the destination path in the same line.

I used example #3.  (This is not my exact script that I wrote, just showing the example.)

Compress-Archive -Path C:\Reference\* -Update -DestinationPath C:\Archives\Draft.Zip

 

I hope this tid-bit helps all of my fellow techies out there.

~Tony Maddin~

 

powershell-logo

Cincy SPUG Presentation – November 3, 2011

Must have command for your system admin toolbox – GPRESULT

I was in need of getting detailed network information in a development/DMZ environment with heightened security.   In particular, Domain Controller information.   I did a lot of NSLOOKUP’s and PING’s to the gateway and dns servers to see what name(s) returned.  I got zero results.  (Very tight security.  🙂 )

 

 

[box type=”info”]My buddy pointed me to the command GPRESULT.exe. It’s a built-in executable for Windows operating systems.

I was able to get a detailed report of the NIC card and the network settings.  A great tool to use![/box]

[box type=”info”]Click here for the Technet article on how to use it. [/box]

[box type=”bio”]Another special thanks to John Chism on his advice.[/box]

How to connect Access to SharePoint 2010 if the feature within a view and/or list is missing.

Anyway, when I went to list view; the button to “Open with Access” was greyed out. I went into my settings and tried to create a new view with Access. It wasn’t there either.

Steps below:

  • So I opened up Access 2010.
  • Then chose the OPEN feature.
  • What is cool is in the drop down area; there was a item called, “SharePoint Foundation Services.”
  • I copied and pasted the URL to the SharePoint calendar that I needed to update…….

And then *POOF!* *MAGIC!* I can then update data via Access.

Happy SharePoint-ing!

Tony