Hi,
Just found a solution for a problem that drove me crazy, My account in AD kept loosing the Inheritance settings and the security kept resetting back. the immediate problem was that without sendas permissions on my account for the blackberry account I could not send any email from it. - I started to loose it...
I have 5 DC's in my network so I tried to see how is setting the permissions but at the end I found that it was the AD itself.
Took me a while to find but it worked.
In a nutshell all admin users will get their permissions reseted if you do not set the inheritance on AdminSHHolder.
Hope it help you before you become crazy... :)
01 February, 2010
31 January, 2010
Restart BlackBerry server services
Just another thing I caught in one of the days, wanted to share with you:
================================================
net stop "BlackBerry Controller"
net stop "BlackBerry Dispatcher"
net stop "BlackBerry Router"
net stop "BlackBerry Synchronization Service"
net stop "BlackBerry Policy Service"
net stop "BlackBerry MDS Connection Service"
net stop "BlackBerry Attachment Service"
net stop "BlackBerry Alert"
pause
net start "BlackBerry Router"
net start "BlackBerry Dispatcher"
net start "BlackBerry Controller"
net start "BlackBerry Synchronization Service"
net start "BlackBerry Policy Service"
net start "BlackBerry MDS Connection Service"
net start "BlackBerry Attachment Service"
net start "BlackBerry Alert"
pause
rem === based on kb: http://www.blackberry.com/btsc/dynamickc.do?externalId=KB13718&sliceId=SAL_Public&command=show&forward=nonthreadedKC&kcId=KB13718 ===
================================================
net stop "BlackBerry Controller"
net stop "BlackBerry Dispatcher"
net stop "BlackBerry Router"
net stop "BlackBerry Synchronization Service"
net stop "BlackBerry Policy Service"
net stop "BlackBerry MDS Connection Service"
net stop "BlackBerry Attachment Service"
net stop "BlackBerry Alert"
pause
net start "BlackBerry Router"
net start "BlackBerry Dispatcher"
net start "BlackBerry Controller"
net start "BlackBerry Synchronization Service"
net start "BlackBerry Policy Service"
net start "BlackBerry MDS Connection Service"
net start "BlackBerry Attachment Service"
net start "BlackBerry Alert"
pause
rem === based on kb: http://www.blackberry.com/btsc/dynamickc.do?externalId=KB13718&sliceId=SAL_Public&command=show&forward=nonthreadedKC&kcId=KB13718 ===
20 January, 2010
NIC Disable enable script...
Small script to disable and enable the NIC:
==================================================================
netsh int set int name="Local Area Connection" admin=DISABLED
if %errorlevel% NEQ 0 goto no_disable
netsh int set int name="Local Area Connection" admin=ENABLED
if %errorlevel% NEQ 0 goto no_enable
goto end
:no_disable
echo Could not disable
goto end
:no_enable
echo Could not enable
:end
pause
================================================================
==================================================================
netsh int set int name="Local Area Connection" admin=DISABLED
if %errorlevel% NEQ 0 goto no_disable
netsh int set int name="Local Area Connection" admin=ENABLED
if %errorlevel% NEQ 0 goto no_enable
goto end
:no_disable
echo Could not disable
goto end
:no_enable
echo Could not enable
:end
pause
================================================================
31 December, 2009
Simple delete of subdirectories only
Hi,
Just found a solution to delete subdirectories from the root of a disk.
Normally to delete a subdirectory you use the RD command but you cannot delete the root folder so you have a problem.
Not anymore...
================================
dir f: /B > dir.txt
for /f %%f in (dir.txt) do (rd f:\%%f /S /Q)
del dir.txt /q
================================
Enjoy.
Just found a solution to delete subdirectories from the root of a disk.
Normally to delete a subdirectory you use the RD command but you cannot delete the root folder so you have a problem.
Not anymore...
================================
dir f: /B > dir.txt
for /f %%f in (dir.txt) do (rd f:\%%f /S /Q)
del dir.txt /q
================================
Enjoy.
14 September, 2009
Automatic backup of XenServer vm with vm-export
Hi,
I needed to schedule a weekly backup of my VM's in my XenServer.
When I googled it I found a script written by Jeff Riechers, this script was good but did not help me because I did not have enough storage to take a snapshot to each VM.
I had to tweak it and I improved the method of retrieving the uuid (no more temp files...).
The final script reads from a file (named serverlist.txt) the vm name and the host on it resides. This is because I noticed that when I shut down the VM it gets a deferent home server, so I forced it to start on a specific host.
Just schedule it with cscript and your good to go.
Link to the script
I needed to schedule a weekly backup of my VM's in my XenServer.
When I googled it I found a script written by Jeff Riechers, this script was good but did not help me because I did not have enough storage to take a snapshot to each VM.
I had to tweak it and I improved the method of retrieving the uuid (no more temp files...).
The final script reads from a file (named serverlist.txt) the vm name and the host on it resides. This is because I noticed that when I shut down the VM it gets a deferent home server, so I forced it to start on a specific host.
Just schedule it with cscript and your good to go.
Link to the script
03 August, 2009
do a smart .NET 3.5 install...
The main problem (as I see it) with the .NET install, that it is not "smart" enough. I mean run it once or twice it will allways run the same install.
If you want to make sure your clients is .NET "enabled" just use my small startup script (or SCCM).
==========================================
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" /v Version | findstr "v3.5"
if %errorlevel%==0 goto end
"%~dp0dotnetfx35.exe" /q /norestart
exit /B %errorlevel%
:end
==========================================
If you want to make sure your clients is .NET "enabled" just use my small startup script (or SCCM).
==========================================
reg query "HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" /v Version | findstr "v3.5"
if %errorlevel%==0 goto end
"%~dp0dotnetfx35.exe" /q /norestart
exit /B %errorlevel%
:end
==========================================
02 August, 2009
run script only when the user got his desktop
Hi,
I had a problem, I needed to change all the workstations screen resolution at my client network.
I found a cool small tool named ResSwitch, the problem with it that it can only run when a user has it's desktop loaded.
I added the following lines to chack if the user desktop is ready.
====================================
:check_4_explorer
tasklist find "explorer"
if %errorlevel% == 1 goto check_4_explorer
"%~dp0ResSwitch.exe" /WIDTH:1280 /HEIGHT:1024
====================================
I had a problem, I needed to change all the workstations screen resolution at my client network.
I found a cool small tool named ResSwitch, the problem with it that it can only run when a user has it's desktop loaded.
I added the following lines to chack if the user desktop is ready.
====================================
:check_4_explorer
tasklist find "explorer"
if %errorlevel% == 1 goto check_4_explorer
"%~dp0ResSwitch.exe" /WIDTH:1280 /HEIGHT:1024
====================================
Subscribe to:
Posts (Atom)