8/24/2015

Deleting Wifi Connections from Command Prompt

Hello Guys, like ever, after testing a little bit Windows 10 and the Wifi Connections, it's a shame for me,I cannot clic and get "forget network" to introduce the new password for a WiFi Connection , so like always, I go back to the old CMD:






in this case, I have first listed the Wifi Connections then deleted the SK17a connection. Hope it helps

8/04/2015

Empowering the Command Prompt

Let's get the machine package manager CHOCOLATEY a command line application installer for Windows based on a package manager called NuGet. Chocolatey adds, updates, and uninstalls programs in the background requiring very little user interaction.

Open the CMD as administrator and hit:

c:\>@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin

this command will install the Chocolatey Package Manager























Finally let's install a little program like 7zip for testing....
































that's it....was that Linux ??? :-)

8/01/2015

Windows 10 vs Linux


Windows 10 will come with a command line package manager, much to the lament of Linux users

Sorry, penguin lovers — if you thought that 2015, in the heinous wake of Windows 8, would finallybe the year of desktop Linux, you were sadly mistaken. Microsoft is trying its best to make make amends with Windows 10, to ensure it’s the dream OS for billions of people around the world who use a desktop PC with a mouse and keyboard — and, as a result, this means Microsoft is going to ship Windows 10 with a package manager. Yes, in Windows 10 you can open up a command line shell and install VLC or Firefox or thousands of other packages by typing in a single command.

If you’ve ever ventured into the dark and mysterious land of Linutopia, where Ubutologists and Debianites reign, you will have noticed that one of the things that Linux users are most proud of is package management. While Windows and Mac users have to run graphical installers — you know, where you hit Next a few times and try to avoid installing bundled crapware — Linux users can just open up a command line and type sudo apt-get install vlc. I’m a Windows user through and through, but I have to admit that installing apps and keeping a system updated is much more pleasant in Linux.

With Windows 10, however, we are finally getting an official package manager: OneGet. In the current build of Windows 10 Technical Preview, you can open up PowerShell and use OneGet to install thousands of applications with commands such as Find-Package VLC and Install-Package Firefox. OneGet seems to implement all of the usual functions that you’d expect from a package manager. You can search for packages, add new sources/repos, uninstall packages, install packages, and so on. OneGet uses the same package format as Chocolatey, one of the most popular third-party package managers for Windows (and indeed, you can add the Chocolatey repo to OneGet if you so wish).




Thanks this new post to: www.extremetech.com, original author

Windows 10 has arrived

Hi Guys

As a system admin or I cannot stay quiet after the Windows 10 announcemente past week, at the same day I was noticed from Microsoft that the Enterprise and Professional version was uploaded to the Microsoft Volume Licensing Page, I searched two days at the ende of the weej almost every hour to see If I could download it, but nothing, adn we are a Software Assurance client.
What the hell, I called the Manager from our Microsoft Software Advisor and required the DVD until monday, so next monday I'm going to test it in my worstation, inside a domain and will be the first Windows 10 ever in our enterprise.

So what do we have to expect ? As far as I coul read in the official Microsoft Technical Preview "Introducing Windows 10" Book:

Most IT pros are in their line of work because we love technology, and a new version of Windows holds the promise of exciting new features and capabilities.

Migrating an enterprise to a new version of Windows is a slow, cautious operation, with careful planning and staged deployments that can take years. As a result of that conservatism, many enterprises provide their workers with PCs that lag far behind the devices those workers use at home.

Windows 10 brings a long list of important changes that any IT pro should look forward to, including major improvements in the user experience, significant security enhancements, and a new web browser. ( PROJECT SPARTAN????????)

But the most significant change is designed to remove the anxiety that accompanies enterprise upgrades. The goal of Windows 10 is to deliver new features when they’re ready, rather than saving them for the next major release. In fact, the very concept of a major release goes away—or at least recedes into the distant background—with Windows 10.

Terry Myerson, the Microsoft executive in charge of the operating systems division, calls it “Windows as a Service.” In fact, he argues, “One could reasonably think of Windows in the next couple of years as one of the largest Internet services on the planet. And just like any Internet service, the idea of asking ‘What version are you on?’ will cease to make sense . . . ”

That process has already begun, with the launch in late 2014 of a Windows 10 Technical Preview aimed at IT pros and consumers. Those who have opted into the Windows 10 preview program are receiving major new features, bug fixes, and security updates through the tried-and-true Windows Update channel, with new updates arriving, on average, monthly.




  • The Windows 10 Start menu blends elements of its Windows 7 predecessor with Windows 8 live tiles.





  • In Tablet Mode, the search box shrinks and the Start menu and apps fill the entire screen.





7/31/2015

The SUPERPING PowerShell Test-NetConnection

You can use it for testing ICMP and TCP connectivity among end users, servers and other network devices. It can also replace tools like nslookup and tracert, and even provide much more powerful troubleshooting and management capabilities. So I'm using PowerShell in the las time much more than the good old Sysyinternals Tools, but not all of these can tools be so easy replaced.

So at this time let's see an internal test inside the local domain:





7/22/2015

GPUPDATE REMOTELY

One of the speechs I sometimes hear from the level 2-3 support is: Just wait for the gpupdate half an hour or one hour. Well, that speech forced me and the GPO's :-) in the workstations to force inmediately the gpo from a single workstation or a group of workstations.

Let's use powershell to force this, and point to an specific OU. 

Requisites: do it from Windows 8 or Windows Server 2012 with the Remote Server Administration Tools installed:


This is for Windows 8. Make a quick search for Windows Server 2012

and make a call to the users that you are doing this because they'll get a black cmd window(~5-10 seconds) with the message that the GPO is updating.

Example: test domain, contoso.com and an OU named Accounting with a subOU named TEST:

PS C:\Users> get-adcomputer -SearchBase "OU=TEST,OU=ACCOUNTING,DC=CONTOSO,DC=COM" -Filter * | %{invoke-gpupdate -Computer $_.Name -RandomDelayInMinute 0; "Refreshing host $_."}


The output looks similar to this:

Refreshing host CN=PC1,OU=TEST,OU=ACCOUNTING,DC=CONTOSO,DC=COM
Refreshing host CN=PC2,OU=TEST,OU=ACCOUNTING,DC=CONTOSO,DC=COM
Refreshing host CN=PC3, OU=TEST,OU=ACCOUNTING,DC=CONTOSO,DC=COM 


Good Luck!

Note: you can do this also from the GUI Windows Server Administration Tools, but you are not always the admin.

7/08/2015

Get monitor and cpu serial numbers

The security best practices(and for 3 months ago the ISO27001 with us) forces IT departments to control the assets. So, what do we have in the hand as lazy admins to collect assets en the network, it depends!


  • Send 10-20 technicians to take inventory manually through the entire office, 1-2-3-4 AD Sites?
  • Use System Center, OK, that's great for serial numers of CPU's but less for monitors, or we can have independent reports for CPU and monitors. So, it's not enough for me.
  • Use this script I found, and find it great from: http://www.itsupportguides.com I don't know the owner of the site but it's a great script and I allow my self to share it.


http://www.itsupportguides.com/vbs-scripts/vbs-script-get-monitor-serial-number-remotely/


The results is exactly what our Management expects, an Excel with serial numbers from CPU's and monitors, associated to the user. Really great and congratulations to the owner of the script!

6/25/2015

More for troubleshooting GPO's

When I see an issue, I can see that there are two ways for analyzing it, from the tech and admin side. Admin deploys new GPO, the next day, tech says, "I'm receiving too many calls because of the not applied GPO", Admin says, "which users or workstation", at this point, there is a problem, a process problem, in fact Change Management. The Admin must have control the issues that are affecting clients. SO, GPMC is a good tool, but not at all,Microsoft has another portable tool named GPInventory for monitoring massively GPO's, and, for this time, we are not gonna use scripts for solving this kind of issues, you could do it, but from my perspective this time is for GUI.

So, download, GPInventory part of the Windows Resource Kit Tool:

http://www.microsoft.com/en-us/download/details.aspx?id=14126

install it and open it:



you only have to select the worksations from a text file(this could be IP's or hostname) or direct fron Active Directory, choose the
context for the GPO Result and that's it.

6/23/2015

Group Policy Troubleshooting

We have always the same issue, lots of workstations that not apply an specific GPO(Group Policy Objects), and fomr the server side for someone of us, we ask the technicians to send us the Group Policy results from the affected Computer, Users. In fact, server administrators can always have and see this Policy Results remotely from the GPMC( GP Management Console), but maybe the hostnames are unknown for them, so what do we have to do as tech support?

Elevate a command prompt and run this script:

gpresult /s 10.20.198.12 /u CONTOSO.LOCAL\domainadminaccount /p mypassword /user targetuser /z >c:\userpolicy.txt


where, the IP is any IP client in your domain, the CONTOSO.LOCAL is the name of your windows domain, the domainadminaccount is the account with privileges for administering workstations in the domain, tha targetuser is any user who has reported a problem with any kind of GPO (i.e. screensaver, slow logon, etc).


Considere this scenario, you migrate your Windows DHCP Server, it's all fine, but at the next day, you receive calls from a lot of users indicating that they cannot access the network. What's the issue? Your new DHCP Server is up the old was demoted, but clients cannot contact them, because your worstations have the old IP address. So, you run this easy and simple command, with administrative privileges over the workstations against you whole domain, and that's it.

psexec \\* ipconfig /renew

Don't forget to take in care some VM's or shadow servers that are maybe configured with any dinamic IP so you dont affect any other infrastructure service.

6/22/2015

Hi Guys, after a couple of years I'm returning to take care of this blog. Like all of us, we have mostly family issues that have to be solved, before taking a new compromise with posting and writing. So this week we'll go ahead and actualize these site with new entries. Anyway, I hope you find old entries useful, we will see new tools and empower together our skills. So, said that, let's have fun together.