Posts

ReadFile using winapi with pinvoke (image a physical disk)

i'm trying read files powershell using winapi (createfile, readfile, closehandle). of course there exist easier ways read files, ultimetaly want read physical disk, that's why. familiar api's , have done many times in other script language. i'm learning powershell.. anyways, believe problem in creation of structure readfile put content. i've put getlasterror in there return code 5 (access denied). other api's seem work fine. appreciated. code; $pinvoke = add-type -name pinvoke21 -passthru -memberdefinition @' [dllimport("kernel32.dll", charset = charset.auto, callingconvention = callingconvention.stdcall, setlasterror = true)] public static extern intptr createfile( string lpfilename, uint dwdesiredaccess, uint dwsharemode, intptr securityattributes, uint dwcreationdisposition, uint dwflagsandattributes ); [dllimport("kernel32.dll", setlasterror = true)]...

RAS Internal NIC cannot ping dedicated LAN NIC Gateway

Image
hello all, i have configured ras ipv6 server. server has 1 nic. ras interface generated after dialing vpn. ras interface assigned pool 2800:fc11:10:: ipv6 prefix assignment. the problem ras interface can ping dedicated lan interface servers but  cannot ping lan gateway . for example: lan nic gateway : 2800:fc11:20::1 ras interface ip : 2800:fc11:10::1 so ras ip ( 2800:fc11:10::1 ) can ping lan servers cannot ping lan gateway (2800:fc11:20::1). any idea , issue ?? common problem. see if helps: . can't ping external network adapter after configuring rras vpn server  quoted" "... when use routing , remote access server setup wizard configure rras vpn server, input , output filters automatically configured on external network adapter process vpn traffic ..." "... security reason, rras modify routing table , enable incoming vpn connections no other forward packets on interface except pptp or l2tp traffic." solution: uncheck ...

Determine whether Hyper-V is currently active (not installed or configured)

hyper-v used visual studio run windows phone emulators. hyper-v incompatible vmware because hyper-v starts windows in mode of permanent virtualisation while vmware need vt-x during runtime only. hyper-v can installed , uninstalled windows role. activate , deactivate permanent windows virtualisation , allow vmware run. of course visual studio emulators stop working. hyper-v can configured active or inactive without uninstalling windows role. involves editing boot configuration bcdedit.exe. after doing change, restart required apply configuration , use or not use hyper-v. bcd setting can read after setting it, unknown whether system has been restarted apply it. setting indicates happen after restart, not whether virtualisation running. some people @ windows service "vmms". unfortunately not helpful because service installed hyper-v role , running, no matter whether virtualisation active or not. wmi information not helpful because says hyper-v running, when it's ...

Does CAL for windows server follows only the Domain Controller?

we have few domain controllers running windows server 2003. have 500 windows server cal these servers. however installed windows server 2008 our anti virus server. need buy 500 server cal windows server 2008 or windows server 2003 cal sufficient because none of domain controllers running windows server 2008? thank you. unless bought windows cal's software assurance, need new cal windows server 2008 every computer can technically access it. (the cal's version bound, see second box labeled important in http://technet.microsoft.com/en-us/library/bb693539.aspx ) Windows Server  >  Windows Server General Forum

Best way to utilize multiple servers in a small network.

i have small network used software development.  have 4 identical servers, right running 2008r2.  have 12gb ram , 1tb raid 0 drives. server1 = domain controller server 2 = app server - sql server server 3 = app server - exchange server 4 = app server - visual studio team foundation server i considering promoting 1 of app servers dc; wouldn't host fismo's available hot backup in case other dc failed.  thinking server 4 work domain controller , still host team foundation server. does sound appropriate?  or have better suggestions? thanks. hi it's recommended have dc installed in physical machine, , can install second 1 in virtual machine ensure  high  availability of domain. other applications,virtualization idea ,it let install each application in virtual machine ,for ,you can install hyper-v included in windows server 2008r2 operating system  but must know if have application require ressource (more 4 processor) sql, hyper-v 2008r...

No DHCP manager available?

hi guys, got win7 , win8 desktop certifications diving server's! i've worked on servers lot not had involvement setting them scratch. have vm setup main dc call dc-01 , i've installed active directory domain services, dns , dhcp roles on server. adds runs , works fine, dns appears working fine also. when go dhcp on left hand side, right click server not give me option manage dhcp nor give option within metro menu. link below screenshot [url=http://imageshack.us/photo/my-images/708/875m.png/][img]http://img708.imageshack.us/img708/8969/875m.png[/img][/url] there error states "the dhcp service failed see directory server authorization." not sure if has it? these hosted via hyper -v , run on external switch. any appreciated thanks i figured out guys add-windowsfeature "dhcp" -includemanagementtools above did trick! Windows Server ...

"Virtual Crossover" connecting 2 virtual switches

i have hyper-v host 2 nics connected 2 physical switches.  both of these on same network/vlan.  provide redundancy iscsi network.  storage arrays recommend setup.  the arrays have 2 controllers, , each controller has 2 nics.  way if either physical switch or pnic goes down, machine can still contact both controllers. i have several guests on host connect array.  attach each guest 2 virtual switches, wondering if possible bridge switches on server.  way, each host connect 1 virtual switch, , if 1 of physical switches go down, hosts still have access both controllers on array through "virtual crossover" in hyper-v.  provide redundacy pnics well, because if 1 of them goes down, guests use other pnic. this seems should easy thing do, can't find documentation on it. any appreciated. sorry not helpful answer, have had through wmi network classes hyper-v , can’t see obvious way of doing this. agree useful in principle. what can tell you, if there way of doing via wmi , network...