Monthly Archives: July 2014

PowerShell 2.0 remoting guide: Part 6 – implicit remoting sessions | Ravikanth Chaganti

PowerShell 2.0 remoting guide: Part 6 – implicit remoting sessions | Ravikanth Chaganti.

How to Create and Restore System Image Backups on Windows 8.1

wbAdmin start backup -backupTarget:G: -include:C:,D: -allCritical

Output on Win 8.1 64 Czech systém loooks like this

wbadmin 1.0 – Backup command-line tool
(C) Copyright 2013 Microsoft Corporation. All rights reserved.

Retrieving volume information…
This will back up Rezervováno systémem (350.00 MB),OS(C:),DATA(D:) to G:.
The backup operation to G: is starting.
Creating a shadow copy of the volumes specified for backup…
Creating a shadow copy of the volumes specified for backup…
Creating a shadow copy of the volumes specified for backup…
Creating a shadow copy of the volumes specified for backup…
Creating a shadow copy of the volumes specified for backup…
Creating a backup of volume Rezervováno systémem (350.00 MB), copied (65%).
The backup of volume Rezervováno systémem (350.00 MB) completed successfully.
Creating a backup of volume OS(C:), copied (0%).
Creating a backup of volume OS(C:), copied (1%). Continue reading

Permissions planning for sites and content in SharePoint 2013

Permissions planning for sites and content in SharePoint 2013.

Skatterbrainz Blog: Calling a URL from WinPE / DaRT Environment

Calling a URL from WinPE / DaRT Environment

So maybe you find a need to call a URL from a WinPE or DaRT session (yes, I know, DaRT is a modified WinPE), but without IE or a browser you find it a challenge. Fear not. There are options at your disposal. Option 1 is to install a light-weight browser into your WinPE bundle, like Bart’sPE did/does. Firefox is a fairly common choice for that, but if you can get another browser to do that you have that option. Option 2 is to invoke the XMLHttp object via script. You can do that with VBscript since wscript/cscript components are part of WinPE and DaRT. The nice thing about this is with XMLhttp, you essentially have a browser but without the GUI. You call URL’s and even fetch (i.e. “scrape”) the return HTML results if needed #I do that a lot and may post some examples soon## A command-line browser, sort of# Here’s an example of option 2 – calling an ASP page with parameters… url = “http://myserver#domain#com/loginfo#asp?c=Workstation123&os=Windows7&ts=Enterprise32b” On Error Resume NextSet ohttp = CreateObject(“Microsoft.XmlHttp”)oHttp.open “GET”, url, FalseIf err.Number 0 Then wscript.Echo “fail: unable to open remote URL for asset number!” wscript.Echo “fail: error is ” & err.Num

via Skatterbrainz Blog: Calling a URL from WinPE / DaRT Environment.

SharePoint 2013 – Related Items Site Column

SharePoint 2013 – Related Items Site Column.

Make Title column a link | SharePoint for Designers

Make Title column a link | SharePoint for Designers.

SharePoint 2013 Out of Box Web Parts – Laura Rogers @WonderLaura

SharePoint 2013 Out of Box Web Parts – Laura Rogers @WonderLaura.

SharePoint 2010 Web Parts by License Type at SharePoint Config

SharePoint 2010 Web Parts by License Type at SharePoint Config.

Filtering Sharepoint list by workflow status column

So you want to filter a view on the workflow status… if you are using OOB approval WF then status codes are:

Canceled = 15
Approved = 0×10 (16)
Rejected = 0×11 (17)

as defined in the ReviewRoutingState enumeration within the Microsoft.Office.Workflow namespace (Microsoft.Office.Workflow.Routing assembly

The status enumeration is defined by the SPWorkFlowStatus enum, within the Microsoft.SharePoint.Workflow namespace in the Microsoft.SharePoint assembly.

In case if you are retrieving the list values in a SQL Reports using the SharePoint provided web service you will get these status codes only and not the text values.

NotStarted = 0

FailedOnStart = 1

InProgress = 2

ErrorOccurred = 3

StoppedByUser = 4

Completed = 5

FailedOnStartRetrying = 6

ErrorOccurredRetrying = 7

ViewQueryOverflow = 8

Max = 15

Set Out Of Office message and mail forward for a user on Exchange 2010

Set Out Of Office message for a user on Exchange 2010

See current OOF configuration for user:

Get-MailboxAutoReplyConfiguration testuser

RunspaceId : 9260623c-85bf-4c19-8e1a-b08b8cbb1ef9
AutoReplyState : Disabled
EndTime : 4. 7. 2014 8:00:00
ExternalAudience : All
ExternalMessage :
InternalMessage :
StartTime : 3. 7. 2014 8:00:00
MailboxOwnerId : test.cz/xx/testuser
Identity : test.cz/xx/testuser
IsValid : True

Set OOF message:

Set-MailboxAutoReplyConfiguration -Identity testuser –AutoReplyState Scheduled –StartTime "
7/3/2014" –EndTime "7/4/2014" –ExternalMessage “External OOF message here” –InternalMessage “Internal OOF message here”

now see the config again:
Get-MailboxAutoReplyConfiguration testuser

RunspaceId : 9260623c-85bf-4c19-8e1a-b08b8cbb1ef9
AutoReplyState : Scheduled
EndTime : 4. 7. 2014 0:00:00
ExternalAudience : All
ExternalMessage :

External OOF message here

InternalMessage :

Internal OOF message here

StartTime : 3. 7. 2014 0:00:00
MailboxOwnerId : test.cz/xx/testuser
Identity : test.cz/xx/testuser
IsValid : True

to set forwarding use:

Set-Mailbox -Identity "Dan Park" -ForwardingAddress "danpark.parents@fineartschool.net" -DeliverToMailboxAndForward $true
Set-Mailbox -Identity "Dan Park" -ForwardingAddress "danpark.parents@fineartschool.net"

to stop forwarding use:

Set-Mailbox -DeliverToMailboxAndForward $false -ForwardingAddress $null -Identity testUser

Sources: http://technet.microsoft.com/en-us/library/dd351134(v=exchg.150).aspx

http://blogs.technet.com/b/exchange/archive/2011/09/08/configure-automatic-replies-for-a-user-in-exchange-2010.aspx

smsagent

Scripts, tools and tips, mostly around Microsoft SCCM and EMS

To The Point

Anything about Technology and Business

Brian's Power Windows Blog

Microsoft in the Enterprise. Windows, Hyper-V, Exchange, SQL, and more!

PowerScripting Podcast

Shownotes and links for the PowerScripting Podcast, a podcast to help people learn Windows Powershell

Learn Powershell | Achieve More

What is this Powershell of which you speak?