<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>!NSFW</title>
	<atom:link href="http://nsfw.ibnmasud.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nsfw.ibnmasud.com</link>
	<description>Safe for Work</description>
	<lastBuildDate>Tue, 17 Apr 2012 14:47:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Find Send-As rights on a Distribution Group</title>
		<link>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-distribution-group/</link>
		<comments>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-distribution-group/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 14:36:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[exchange 2010]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=156</guid>
		<description><![CDATA[Following up on my previous post on how to find out who has send-as rights on a mailbox, here&#8217;s how you can do the same for a distribution group. Get-ADPermission -identity distributiongroupname &#124; where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} &#124; FT -Wrap It&#8217;s essentially the same command. <a href='http://nsfw.ibnmasud.com/find-send-as-rights-on-a-distribution-group/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Following up on my previous post on how to find out who has send-as rights on a mailbox, here&#8217;s how you can do the same for a distribution group.</p>
<p><code>Get-ADPermission -identity distributiongroupname | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT -Wrap</code></p>
<p>It&#8217;s essentially the same command. Instead of piping the mailbox object to the Get-ADPermission cmdlet, here you&#8217;re telling the Get-ADPermission cmdlet the name of the distribution group you want to find who has permissions for.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-distribution-group/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find Send-As rights on a mailbox</title>
		<link>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-mailbox/</link>
		<comments>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-mailbox/#comments</comments>
		<pubDate>Tue, 17 Apr 2012 14:31:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[exchange 2010]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=154</guid>
		<description><![CDATA[Here&#8217;s a quick way to find out who has send-as permissions on a particular mailbox Get-Mailbox -identity mailboxname &#124; Get-ADPermission &#124; where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} &#124; FT -Wrap You can also pipe in all mailboxes or a server or database to find out send-as permissions <a href='http://nsfw.ibnmasud.com/find-send-as-rights-on-a-mailbox/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick way to find out who has send-as permissions on a particular mailbox</p>
<p><code>Get-Mailbox -identity mailboxname | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT -Wrap</code></p>
<p>You can also pipe in all mailboxes or a server or database to find out send-as permissions on all mailboxes as follows</p>
<p><code>Get-Mailbox | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT -Wrap<br />
</code><br />
<code>Get-Mailbox -Server servername | Get-ADPermission | where {($_.ExtendedRights -like “*Send-As*”) -and ($_.IsInherited -eq $false) -and -not ($_.User -like “NT AUTHORITY\SELF”)} | FT -Wrap</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/find-send-as-rights-on-a-mailbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logoff a VPN session from your Cisco ASA</title>
		<link>http://nsfw.ibnmasud.com/logoff-a-vpn-session-from-your-cisco-asa/</link>
		<comments>http://nsfw.ibnmasud.com/logoff-a-vpn-session-from-your-cisco-asa/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 15:43:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=151</guid>
		<description><![CDATA[You can log off a Cisco ASA VPN session from the command line as follows Find the users session index show vpn-sessiondb &#124; include (username) The index field is what you&#8217;re looking for. Once you have this you can log that particular session off by using the following command. vpn-sessiondb logoff index XXXX where XXXX <a href='http://nsfw.ibnmasud.com/logoff-a-vpn-session-from-your-cisco-asa/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>You can log off a Cisco ASA VPN session from the command line as follows</p>
<p>Find the users session index</p>
<p><code>show vpn-sessiondb | include (username)</code></p>
<p>The index field is what you&#8217;re looking for. Once you have this you can log that particular session off by using the following command.</p>
<p><code>vpn-sessiondb logoff index XXXX</code></p>
<p>where XXXX is the index number.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/logoff-a-vpn-session-from-your-cisco-asa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List active Cisco ASA VPN sessions</title>
		<link>http://nsfw.ibnmasud.com/list-active-cisco-asa-vpn-sessions/</link>
		<comments>http://nsfw.ibnmasud.com/list-active-cisco-asa-vpn-sessions/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 15:40:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=149</guid>
		<description><![CDATA[Here&#8217;s how you can quickly list the currently active IPSec VPN sessions on your ASA. show vpn-sessiondb remote You can of course use modifiers to filter only the text you&#8217;re interested in. For example show vpn-sessiondb remote &#124; include (Username&#124;Duration) This will give you the username and duration of the session. You can also get <a href='http://nsfw.ibnmasud.com/list-active-cisco-asa-vpn-sessions/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how you can quickly list the currently active IPSec VPN sessions on your ASA.</p>
<p><code>show vpn-sessiondb remote</code></p>
<p>You can of course use modifiers to filter only the text you&#8217;re interested in. For example</p>
<p><code>show vpn-sessiondb remote | include (Username|Duration)</code></p>
<p>This will give you the username and duration of the session.</p>
<p>You can also get a summary of all the connections as follows</p>
<p><code>show vpn-sessiondb summary</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/list-active-cisco-asa-vpn-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find locked AD user accounts</title>
		<link>http://nsfw.ibnmasud.com/find-locked-ad-user-accounts/</link>
		<comments>http://nsfw.ibnmasud.com/find-locked-ad-user-accounts/#comments</comments>
		<pubDate>Tue, 19 Apr 2011 18:58:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[active directory]]></category>
		<category><![CDATA[powershell]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=143</guid>
		<description><![CDATA[To get a quick list of users in AD whose accounts are locked, you can use Quest Software&#8217;s free ActiveRoles Management Shell for Active Directory PS-Snapin. This snap-in simplifies a lot of the AD related functions through Powershell, finding locked user accounts is just one of them. get-QADUser -Locked]]></description>
			<content:encoded><![CDATA[<p>To get a quick list of users in AD whose accounts are locked, you can use Quest Software&#8217;s free <a href="http://www.quest.com/powershell/activeroles-server.aspx">ActiveRoles Management Shell for Active Directory</a> PS-Snapin. This snap-in simplifies a lot of the AD related functions through Powershell, finding locked user accounts is just one of them.</p>
<p><code>get-QADUser -Locked</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/find-locked-ad-user-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>extract &amp; untar</title>
		<link>http://nsfw.ibnmasud.com/extract-untar/</link>
		<comments>http://nsfw.ibnmasud.com/extract-untar/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 23:17:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*nix]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=139</guid>
		<description><![CDATA[This is a one step command to extract and untar a tar.gz file. tar zxvf filename.tar.gz z = Gunzip(uncompress) it before extracting, used on file ending in .tar.gz or .tgz x = Extract the contents of the TAR file v = Verbose &#8211; display contents as it is tarring or extracting f = Filename to <a href='http://nsfw.ibnmasud.com/extract-untar/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>This is a one step command to <strong>extract </strong>and <strong>untar</strong> a tar.gz file.</p>
<p><code>tar zxvf filename.tar.gz</code></p>
<p>z = Gunzip(uncompress) it before extracting, used on file ending in .tar.gz or .tgz<br />
x = Extract the contents of the TAR file<br />
v = Verbose &#8211; display contents as it is tarring or extracting<br />
f =  Filename to follow</p>
<p>Note: If the file does not have &#8220;.gz&#8221; extension that means its already uncompressed and one has to just extract it using &#8220;tar xvf&#8221; command.</p>
<p>This is a two step command to <strong>extract </strong>and <strong>untar</strong> the file.</p>
<p><code>gunzip filename.tar.gz</code></p>
<p><code>tar xvf filename.tar</code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/extract-untar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SSH tunnels</title>
		<link>http://nsfw.ibnmasud.com/ssh-tunnels/</link>
		<comments>http://nsfw.ibnmasud.com/ssh-tunnels/#comments</comments>
		<pubDate>Thu, 03 Feb 2011 19:24:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=136</guid>
		<description><![CDATA[Everyone knows you can use SSH to tunnel traffic through a remote host running an SSH server. This can allow you to use the web, for instance, as if you were at that remote host. You do this by creating a SOCKS proxy and then setting your local browser to use this proxy. $ssh -D <a href='http://nsfw.ibnmasud.com/ssh-tunnels/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Everyone knows you can use SSH to tunnel traffic through a remote host running an SSH server. This can allow you to use the web, for instance, as if you were at that remote host. You do this by creating a SOCKS proxy and then setting your local browser to use this proxy. </p>
<p><code>$ssh -D 8888 username@remotesshserver</code></p>
<p>This command tells your machine to create a tunnel to the remote ssh server and create a proxy on your local machine at port 8888 for you to use.</p>
<p>Now all you need to do is configure your browser to use this proxy. </p>
<p><code>Server: localhost or 127.0.0.1<br />
Port: 8888</code></p>
<p>Although using this proxy through firefox will secure your web traffic, it will not hide your DNS queries. With SOCKS 5 in Firefox you can specify which side of the proxy handles DNS lookups. This can be done by setting <b>network.proxy.socks_remote_dns = true</b> in about:config.</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/ssh-tunnels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Anatomy of an ISDN call</title>
		<link>http://nsfw.ibnmasud.com/anatomy-of-an-isdn-call/</link>
		<comments>http://nsfw.ibnmasud.com/anatomy-of-an-isdn-call/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 17:02:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=127</guid>
		<description><![CDATA[This is high-level overview of an ISDN call. Call Setup 993697mS ISDNL3Tx: v=0 peb=5 ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Remote) Message Type = Setup InformationElement = BearerCapability 0000 04 03 80 90 a2 InformationElement = CHI 0000 18 03 a9 83 97 InformationElement = CallingPartyNumber 0000 6c 0c 00 80 33 30 33 35 35 35 <a href='http://nsfw.ibnmasud.com/anatomy-of-an-isdn-call/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>This is high-level overview of an ISDN call.</p>
<p><strong>Call Setup</strong></p>
<pre>993697mS ISDNL3Tx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Remote)
            Message Type = Setup
                InformationElement = BearerCapability
             0000 04 03 80 90 a2
                InformationElement = CHI
             0000 18 03 a9 83 97
            InformationElement = CallingPartyNumber
             0000 6c 0c 00 80 33 30 33 35 35 35 31 32 30 34
                InformationElement = CalledPartyNumber
             0000 70 0b 80 37 32 30 34 34 34 35 32 33 37          </pre>
<p><strong>Call Handling Information</strong></p>
<pre>993737mS ISDNL3Rx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Local)
            Message Type = CallProceeding
                InformationElement = CHI
            0000 18 03 a9 83 97= use B channel 23          </pre>
<p><strong>Phone rings on the other side</strong></p>
<pre>993746mS ISDNL3Rx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Local)
            Message Type = Alerting</pre>
<p><strong>The other side answers the call</strong></p>
<pre>1005111mS ISDNL3Rx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Local)
            Message Type = Connect
                InformationElement = PI
            0000 1e 02 81 82
                InformationElement = Shift 6
                InformationElement = ??(28)
            0000 28 0e 31 73 74 20 32 20 77 69 72 73 20 44 43 50</pre>
<p><strong>Speech path established</strong></p>
<pre> 1005112mS ISDNL3Tx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Remote)
            Message Type = ConnectAck</pre>
<p><strong>Call disconnected</strong></p>
<pre> 1007058mS ISDNL3Rx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Local)
            Message Type = Disconnect
                InformationElement =
            0000 08 02 81 90=Cause code 90=Normal call clearing    </pre>
<p><strong>Channel Released by provider </strong></p>
<pre> 1007059mS ISDNL3Tx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Remote)
            Message Type = Release</pre>
<p><strong>Channel free for new use</strong></p>
<pre> 1007077mS ISDNL3Rx: v=0 peb=5
            ISDN Layer3 Pcol=08(Q931) Reflen=2 ref=0011(Local)
            Message Type = ReleaseComplete</pre>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/anatomy-of-an-isdn-call/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quest ActiveRoles Management Shell for Active Directory</title>
		<link>http://nsfw.ibnmasud.com/find-ad-users-with-passwords-that-dont-expire/</link>
		<comments>http://nsfw.ibnmasud.com/find-ad-users-with-passwords-that-dont-expire/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 22:08:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=124</guid>
		<description><![CDATA[Quest Software&#8217;s free ActiveRoles Management Shell for Active Directory PS-Snapin simplifies a lot of the AD related functions through Powershell. Following is a list of some commonly used user related actions. Finding non-expiring passwords get-QADUser -PasswordNeverExpires Finding disabled accounts get-qaduser -disabled Enabling disabled accounts enabled-qaduser -identity]]></description>
			<content:encoded><![CDATA[<p>Quest Software&#8217;s free <a href="http://www.quest.com/powershell/activeroles-server.aspx">ActiveRoles Management Shell for Active Directory</a> PS-Snapin simplifies a lot of the AD related functions through Powershell. Following is a list of some commonly used user related actions. </p>
<p>Finding non-expiring passwords<br />
<code>get-QADUser -PasswordNeverExpires</code></p>
<p>Finding disabled accounts<br />
<code>get-qaduser -disabled</code></p>
<p>Enabling disabled accounts<br />
<code>enabled-qaduser -identity <username></code></p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/find-ad-users-with-passwords-that-dont-expire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote management of Exchange 2010 using PowerShell</title>
		<link>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/</link>
		<comments>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 16:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://nsfw.ibnmasud.com/?p=118</guid>
		<description><![CDATA[You can run powershell commands on your Exchange 2010 server from machines whether or not they have the Exchange Management Tools installed using implicit remoting. Even when you run the Exchange Management Shell on your exchange server, you&#8217;re essentially creating a powershell remoting session. The following steps take place in the background when you click <a href='http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/' class='excerpt-more'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>You can run powershell commands on your Exchange 2010 server from machines whether or not they have the Exchange Management Tools installed using implicit remoting.</p>
<p>Even when you run the Exchange Management Shell on your exchange server, you&#8217;re essentially creating a powershell remoting session. The following steps take place in the background when you click the EMS icon:</p>
<li>Load the Microsoft.Exchange.Management.PowerShell.E2010 snap-in gets loaded</li>
<li>The RemoteExchange.ps1 script is dot sourced</li>
<li>The Connect-ExchangeServer function is executed</li>
<p>You can set up implicit remoting from any maching using powershell v2. This imports the commands from your exchange server to your local powershell session so you don&#8217;t need any Exchange tools installed.</p>
<p>First we create a session using the New-PSSession cmdlet:</p>
<p><code>$s = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri http://&lt;CAS FQDN&gt;/PowerShell/ -Authentication Kerberos</code></p>
<p>Then, import the session using the Import-PSSession cmdlet:</p>
<p><code>Import-PSSession $s</code></p>
<p>The Exchange Management Shell commands are now imported into the local PowerShell session.</p>
<p>You could use the same method to setup a scheduled task from your machine to run a commands on your exchange server.</p>
<p>[source: <a href="http://www.mikepfeiffer.net/2010/02/managing-exchange-2010-with-remote-powershell/"> ]</p>
]]></content:encoded>
			<wfw:commentRss>http://nsfw.ibnmasud.com/remote-management-of-exchange-2010-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

