Warning: Cannot modify header information - headers already sent by (output started at /home/vivithem/public_html/wp-content/plugins/akismet/wrapper.php:1) in /home/vivithem/public_html/wp-includes/feed-rss2.php on line 8
Vivi The Mage http://vivithemage.com Web Hosting Owner and Networking Administrator...meet gamer. Mon, 23 Nov 2015 23:29:51 +0000 en-US hourly 1 http://wordpress.org/?v=4.3.1 Adding User Principal Names in Active Directory via PowerShell for Federation http://vivithemage.com/2015/11/10/adding-user-principal-names-in-active-directory-via-powershell-for-federation/ http://vivithemage.com/2015/11/10/adding-user-principal-names-in-active-directory-via-powershell-for-federation/#comments Tue, 10 Nov 2015 20:59:35 +0000 http://vivithemage.com/?p=26345957119 read more]]> I wanted to update the UPN or User Principal Names in our AD, as we had a couple thousand users that had been in our AD for over 10 years, in the NT days. So they were created without UPN’s.

This will print out the list of users and output it to a file so you can review who will be changed. We did not want to change the admin users so I added a notlike clause.

get-aduser -Filter * -SearchBase ‘CN=Users,dc=vivithemage,dc=com’ | where {($_.userprincipalname -eq $null) -and ($_.name -notlike “*admin*”)} | format-table samaccountname,givenname,surname | Out-File c:\test\UPN-prechange2.txt

Reviewed the list, looked good, so I can now run this to make the blanket change, while manually specifying the domain name:

get-aduser -Filter * -SearchBase ‘CN=Users,dc=vivithemage,dc=com’ | where {($_.userprincipalname -eq $null) -and ($_.name -notlike “*admin*”)} | foreach { Set-ADUser $_ -UserPrincipalName (“{0}@{1}” -f $_.name,”vivithemage.com”)}

Lots of help from this article: http://blogs.technet.com/b/heyscriptingguy/archive/2013/08/13/add-user-principal-names-in-active-directory-via-powershell.aspx
and ss64.com

http://vivithemage.com/2015/11/10/adding-user-principal-names-in-active-directory-via-powershell-for-federation/feed/ 0
How to get to Nexus 6P Recovery Mode http://vivithemage.com/2015/11/06/how-to-get-to-nexus-6p-recovery-mode/ http://vivithemage.com/2015/11/06/how-to-get-to-nexus-6p-recovery-mode/#comments Fri, 06 Nov 2015 14:20:28 +0000 http://vivithemage.com/?p=26345957117 read more]]> I wanted to wipe my cache partition via recovery, and this is what it took to get into recovery:

Power Down the Nexus 6P
Boot the Nexus 6P into Fastboot Mode
Once in Fastboot Mode, Press the volume Down Button Twice
This Should Highlight the ‘Recovery’ Option
When ‘Recovery’ is Highlighted, Press the Power Button to Select This Option
This Will Take You to a Black Screen with a Green Android Laying Down
From Here, Press and Hold the the Power Button, Then Press the Volume Up Button
When Done Right, You’ll Immediately be Taken to the Recovery Mode Menu

http://vivithemage.com/2015/11/06/how-to-get-to-nexus-6p-recovery-mode/feed/ 0
mobile iron root checker app for MDM Android http://vivithemage.com/2015/08/14/mobile-iron-root-checker-app-for-mdm-android/ http://vivithemage.com/2015/08/14/mobile-iron-root-checker-app-for-mdm-android/#comments Fri, 14 Aug 2015 15:17:44 +0000 http://vivithemage.com/?p=26345957110 read more]]> I wanted to use my rooted/unlocked nexus 6 on my companies Mobile Iron MDM, so I ended up having to relock and unroot. I still had issues with Mobile Iron saying my OS was comprimised. I went through a few apps, and it was still flagged. I contacted Mobile Iron and they said they had an application called root checker that tells you why it’s flagged.

This is the most recent as of today:


You have to enable ‘Unknown Sources’ under Settings -> Peronsal Security -> Unknown Sources and install it.

Then you can run it and it will basically tell you what’s flagged.

http://vivithemage.com/2015/08/14/mobile-iron-root-checker-app-for-mdm-android/feed/ 2
power shell script unmounting system reserved http://vivithemage.com/2015/07/27/power-shell-script-unmounting-system-reserved/ http://vivithemage.com/2015/07/27/power-shell-script-unmounting-system-reserved/#comments Mon, 27 Jul 2015 16:41:01 +0000 http://vivithemage.com/?p=26345957105 read more]]> I need a powershell way to remove the system reserved drive letter, as there is no reason for our users to actually use that, and access it. In powershell drop this code in:

$target = (Get-Volume -FileSystemLabel “System Reserved”).DriveLetter+ “:”
$volume = Get-WmiObject Win32_Volume -Filter “DriveLetter=’$target'”

if ($null -ne $volume)
$volume.DriveLetter = $null

Save it, make sure it’s a ps1 file and execute, it will remove the Drive Letter, and unmount it.

http://vivithemage.com/2015/07/27/power-shell-script-unmounting-system-reserved/feed/ 0
Copy cisco running config with putty http://vivithemage.com/2015/07/20/copy-cisco-running-config-with-putty/ http://vivithemage.com/2015/07/20/copy-cisco-running-config-with-putty/#comments Mon, 20 Jul 2015 15:49:17 +0000 http://vivithemage.com/?p=26345957102 read more]]> I wanted to do a quick backup of my running config without needing to setup a TFTP server.

You will first want to get to enabled mode

router$ enable

Then run terminal length 0, as this will let the screen spit out all data without pruning with the ‘—-more—-‘ from output.

router# terminal length 0

The next step is configuring your putty session as follows:

Right-click the window title and choose ‘Change Settings’
On the left, select ‘Logging’ under ‘Session’
Select the ‘All session output’ radio button and choose a destination file
Click “Apply”
Now send a ‘show running-config’ command and the config will be sent to your log file.

router# sh run

http://vivithemage.com/2015/07/20/copy-cisco-running-config-with-putty/feed/ 0
How to get LG G3 in recovery mode http://vivithemage.com/2015/07/13/how-to-get-lg-g3-in-recovery-mode/ http://vivithemage.com/2015/07/13/how-to-get-lg-g3-in-recovery-mode/#comments Tue, 14 Jul 2015 01:30:47 +0000 http://vivithemage.com/?p=26345957100 read more]]> You need to power off the device, then hold volume down, and the power button until the LG logo pops up. Then let off BOTH buttons for about 1 second, then hit them both again and recovery should startup. You will select yes to wipeing and that will get you into recovery. This is assuming you have recovery installed.

http://vivithemage.com/2015/07/13/how-to-get-lg-g3-in-recovery-mode/feed/ 0
Disable Windows Startup Repair as Default Option http://vivithemage.com/2015/06/14/disable-windows-startup-repair-as-default-option/ http://vivithemage.com/2015/06/14/disable-windows-startup-repair-as-default-option/#comments Mon, 15 Jun 2015 00:53:11 +0000 http://vivithemage.com/?p=26345957096 read more]]> I was having issues where my older raid card would not get recognized on the first boot, causing windows to reboot, then BSOD. So 50% of the time I would reboot and would be stuck on the repair screen, so I wanted to disable it. Apparently you can through the bcdedit!

bcdedit /set {default} recoveryenabled No

http://vivithemage.com/2015/06/14/disable-windows-startup-repair-as-default-option/feed/ 0
copy a file into all user directories via bat files for windows 7 or xp using a wildcard http://vivithemage.com/2015/05/18/copy-a-file-into-all-user-directories-via-bat-files-for-windows-7-or-xp-using-a-wildcard/ http://vivithemage.com/2015/05/18/copy-a-file-into-all-user-directories-via-bat-files-for-windows-7-or-xp-using-a-wildcard/#comments Mon, 18 May 2015 17:04:39 +0000 http://vivithemage.com/?p=26345957093 read more]]> I needed to copy one file into all of the user directories on computers. I ended up creating a for loop, print it, then use that list as a variable to throw in, worked great. This was one of the few things I could not find on google, so hopefully this hits a few keywords for people when they’re searching. IT IS POSSIBLE! This can be done in BAT, CMD, OR just dump it into a command pronpt changing your own directories/variables as needed.

REM this prints all users in C:\Users\ and then copies the EssUser.cfg file to the PartsDoc Dir
FOR /D %%G IN (c:\Users\*.*) DO xcopy /Y /H /R "E:\PartsDoc Updates\EssUser.cfg" "%%G\Documents\CLAAS\PartsDoc\"

http://vivithemage.com/2015/05/18/copy-a-file-into-all-user-directories-via-bat-files-for-windows-7-or-xp-using-a-wildcard/feed/ 0
Someone is currently logged into the APC Management Web Server http://vivithemage.com/2015/05/07/someone-is-currently-logged-into-the-apc-management-web-server/ http://vivithemage.com/2015/05/07/someone-is-currently-logged-into-the-apc-management-web-server/#comments Thu, 07 May 2015 18:19:49 +0000 http://vivithemage.com/?p=26345957090 All you have to do to fix this is telnet into the IP using the credentials, the defaults are usually APC // APC and then type exit and the web console should work again.

http://vivithemage.com/2015/05/07/someone-is-currently-logged-into-the-apc-management-web-server/feed/ 0
How to enable tethering/hotspot on Lollipop on the Nexus 6 http://vivithemage.com/2015/03/11/how-to-enable-tethering-on-lollipop-on-the-nexus-6/ http://vivithemage.com/2015/03/11/how-to-enable-tethering-on-lollipop-on-the-nexus-6/#comments Wed, 11 Mar 2015 14:12:45 +0000 http://vivithemage.com/?p=26345957081 read more]]> I have gotten this to work on stock 5.0 and stock 5.0.2 Nexus 6 with ATT.

Pre-req is you must be at least rooted. All work is done at your own risk, as modifying your system files can really muck your device up if done incorrectly.

1) Using a file explorer, navigate to /system/
2) backup build.prop
3) edit the build.prop file with a text editor
4) Add the following line to the bottom of build.prop file: net.tethering.noprovisioning=true
5) Save the file and reboot the phone


http://vivithemage.com/2015/03/11/how-to-enable-tethering-on-lollipop-on-the-nexus-6/feed/ 2